diff --git a/lib/widget/bee_scaffold.dart b/lib/widget/bee_scaffold.dart index f1f53be0..e2b1cd65 100644 --- a/lib/widget/bee_scaffold.dart +++ b/lib/widget/bee_scaffold.dart @@ -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( 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, diff --git a/pubspec.lock b/pubspec.lock index 608e30ea..467febbc 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index 11e942d8..5cd7a881 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: