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:
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user