update bee scaffold

hmxc
小赖 4 years ago
parent 64c7e3a6a7
commit 914168a473

@ -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) {
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: title == null
? null
: AppBar(
backgroundColor: bgColor,
title: title.text.make(),
leading: leading ?? BeeBackButton(),
actions: actions,
bottom: appBarBottom,
),
appBar: appBar,
body: body,
bottomNavigationBar: bottomNavi,
floatingActionButton: fab,

@ -199,6 +199,41 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "6.1.0"
firebase_core:
dependency: transitive
description:
name: firebase_core
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.3"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
url: "https://pub.flutter-io.cn"
source: hosted
version: "4.0.0"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.2"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.0"
firebase_crashlytics_platform_interface:
dependency: transitive
description:
name: firebase_crashlytics_platform_interface
url: "https://pub.flutter-io.cn"
source: hosted
version: "3.0.0"
flustars:
dependency: "direct main"
description:

@ -62,6 +62,7 @@ dependencies:
amap_flutter_location: ^1.0.1
amap_flutter_base: ^1.0.2
animated_text_kit: ^4.1.1
firebase_crashlytics: ^2.0.0
dev_dependencies:

Loading…
Cancel
Save