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

Add beginnings of "page" widget view

This commit is contained in:
Oliver Walters
2020-04-18 12:13:41 +10:00
parent e92a05a306
commit c2e398463f
2 changed files with 60 additions and 7 deletions

View File

@ -46,7 +46,13 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
}
// Function to construct a body (MUST BE PROVIDED)
Widget getBody(BuildContext context);
Widget getBody(BuildContext context) {
return null;
}
Widget getBottomNavBar(BuildContext context) {
return null;
}
@override
Widget build(BuildContext context) {
@ -60,7 +66,8 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
body: RefreshIndicator(
onRefresh: refresh,
child: getBody(context)
)
),
bottomNavigationBar: getBottomNavBar(context),
);
}
}