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

Add "actions" panel to stock item view

This commit is contained in:
Oliver Walters
2021-01-29 00:08:17 +11:00
parent 02cfeef31e
commit db6aae8a78
4 changed files with 128 additions and 46 deletions

View File

@ -11,6 +11,16 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
// Storage for context once "Build" is called
BuildContext context;
// Current tab index (used for widgets which display bottom tabs)
int tabIndex = 0;
// Update current tab selection
void onTabSelectionChanged(int index) {
setState(() {
tabIndex = index;
});
}
List<Widget> getAppBarActions(BuildContext context) {
return [];
}