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

Company list is now refreshable

This commit is contained in:
Oliver Walters
2020-04-15 12:07:36 +10:00
parent 578d54367a
commit 90a39ae3de
6 changed files with 32 additions and 43 deletions

View File

@ -11,7 +11,7 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
// Storage for context once "Build" is called
BuildContext context;
String app_bar_title = "App Bar Title";
String getAppBarTitle(BuildContext context) { return "App Bar Title"; }
void initState() {
super.initState();
@ -31,7 +31,7 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
// Function to construct an appbar (override if needed)
AppBar getAppBar(BuildContext context) {
return AppBar(
title: Text(app_bar_title)
title: Text(getAppBarTitle(context))
);
}