2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Add snackbar with icon

- stock adjust
- part edit
- location edit
This commit is contained in:
Oliver Walters
2021-02-10 23:51:38 +11:00
parent ce2a866384
commit c8c056f96d
7 changed files with 154 additions and 34 deletions

View File

@ -8,6 +8,8 @@ import 'package:InvenTree/widget/drawer.dart';
abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
final refreshableKey = GlobalKey<ScaffoldState>();
// Storage for context once "Build" is called
BuildContext context;
@ -80,6 +82,7 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
this.context = context;
return Scaffold(
key: refreshableKey,
appBar: getAppBar(context),
drawer: getDrawer(context),
floatingActionButton: getFab(context),