mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Company list is now refreshable
This commit is contained in:
parent
578d54367a
commit
90a39ae3de
6 changed files with 32 additions and 43 deletions
|
|
@ -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))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue