2024-12-07 12:29:34 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
2024-09-06 23:38:03 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2024-10-06 23:44:19 +00:00
|
|
|
class ScanFoodFAB extends StatelessWidget {
|
2024-09-07 23:57:40 +00:00
|
|
|
final Function() onPressed;
|
2024-10-06 23:44:19 +00:00
|
|
|
const ScanFoodFAB({super.key, required this.onPressed});
|
2024-09-06 23:38:03 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return FloatingActionButton(
|
|
|
|
heroTag: "scanFoodFAB",
|
|
|
|
child: const Icon(Icons.barcode_reader),
|
2024-09-07 23:57:40 +00:00
|
|
|
onPressed: () {
|
|
|
|
onPressed();
|
2024-09-06 23:38:03 +00:00
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|