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