update bee scaffold

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

@ -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,

@ -199,6 +199,41 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "6.1.0" 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: flustars:
dependency: "direct main" dependency: "direct main"
description: description:

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

Loading…
Cancel
Save