2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Remove floating action button

This commit is contained in:
Oliver
2021-08-16 20:40:29 +10:00
parent f027dff2af
commit 2720280ada
5 changed files with 16 additions and 31 deletions

View File

@ -37,6 +37,18 @@ class _StockItemTestResultDisplayState extends RefreshableState<StockItemTestRes
@override
String getAppBarTitle(BuildContext context) => L10().testResults;
@override
List<Widget> getAppBarActions(BuildContext context) {
return [
IconButton(
icon: FaIcon(FontAwesomeIcons.plusCircle),
onPressed: () {
addTestResult(context);
}
),
];
}
@override
Future<void> request() async {
await item.getTestTemplates();
@ -220,14 +232,4 @@ class _StockItemTestResultDisplayState extends RefreshableState<StockItemTestRes
).toList()
);
}
@override
Widget getFab(BuildContext context) {
return FloatingActionButton(
child: Icon(FontAwesomeIcons.plus),
onPressed: () {
addTestResult(context);
},
);
}
}