calorimeter/lib/utils/scan_food_floating_button.dart
2024-10-08 01:04:33 +02:00

18 lines
401 B
Dart

import 'package:flutter/material.dart';
class ScanFoodFAB extends StatelessWidget {
final Function() onPressed;
const ScanFoodFAB({super.key, required this.onPressed});
@override
Widget build(BuildContext context) {
return FloatingActionButton(
heroTag: "scanFoodFAB",
child: const Icon(Icons.barcode_reader),
onPressed: () {
onPressed();
},
);
}
}