|
|
|
@ -25,7 +25,7 @@ class BeeScaffold extends StatelessWidget {
|
|
|
|
|
final SystemUiOverlayStyle systemStyle;
|
|
|
|
|
BeeScaffold({
|
|
|
|
|
Key key,
|
|
|
|
|
@required this.title,
|
|
|
|
|
this.title,
|
|
|
|
|
this.body,
|
|
|
|
|
this.actions,
|
|
|
|
|
this.leading,
|
|
|
|
@ -53,19 +53,21 @@ class BeeScaffold extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
|
value: systemStyle,
|
|
|
|
|
child: Scaffold(
|
|
|
|
|
backgroundColor: bodyColor,
|
|
|
|
|
appBar: title == null
|
|
|
|
|
? null
|
|
|
|
|
: AppBar(
|
|
|
|
|
Widget appBar;
|
|
|
|
|
if (title != null)
|
|
|
|
|
appBar = AppBar(
|
|
|
|
|
backgroundColor: bgColor,
|
|
|
|
|
title: title.text.make(),
|
|
|
|
|
leading: leading ?? BeeBackButton(),
|
|
|
|
|
actions: actions,
|
|
|
|
|
bottom: appBarBottom,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
|
value: systemStyle,
|
|
|
|
|
child: Scaffold(
|
|
|
|
|
backgroundColor: bodyColor,
|
|
|
|
|
appBar: appBar,
|
|
|
|
|
body: body,
|
|
|
|
|
bottomNavigationBar: bottomNavi,
|
|
|
|
|
floatingActionButton: fab,
|
|
|
|
|