From c3cd47c2b5c7536caead5e929bdee01aed323f51 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Jul 2018 12:29:07 +0300 Subject: [PATCH] Fix for hasNotch --- lib/ui/app/app_bottom_bar.dart | 4 ++-- lib/ui/invoice/edit/invoice_edit.dart | 2 +- pubspec.lock | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/ui/app/app_bottom_bar.dart b/lib/ui/app/app_bottom_bar.dart index cbf00034a..8790f020a 100644 --- a/lib/ui/app/app_bottom_bar.dart +++ b/lib/ui/app/app_bottom_bar.dart @@ -156,8 +156,8 @@ class _AppBottomBarState extends State { }); }; - return new BottomAppBar( - hasNotch: true, + return BottomAppBar( + shape: CircularNotchedRectangle(), child: Row( children: [ IconButton( diff --git a/lib/ui/invoice/edit/invoice_edit.dart b/lib/ui/invoice/edit/invoice_edit.dart index 02e350a8c..316c4c76e 100644 --- a/lib/ui/invoice/edit/invoice_edit.dart +++ b/lib/ui/invoice/edit/invoice_edit.dart @@ -101,7 +101,7 @@ class _InvoiceEditState extends State ), ), bottomNavigationBar: BottomAppBar( - hasNotch: true, + shape: CircularNotchedRectangle(), child: Padding( padding: const EdgeInsets.all(14.0), child: Text( diff --git a/pubspec.lock b/pubspec.lock index 36d2bd082..cdd3b9f16 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -133,7 +133,7 @@ packages: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "2.0.5" csslib: dependency: transitive description: @@ -147,7 +147,7 @@ packages: name: dart_style url: "https://pub.dartlang.org" source: hosted - version: "1.0.14" + version: "1.1.1" file: dependency: transitive description: @@ -307,7 +307,7 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.2+1" + version: "0.12.2" memoize: dependency: "direct main" description: @@ -363,7 +363,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.0" + version: "1.6.1" path_provider: dependency: "direct main" description: @@ -536,7 +536,7 @@ packages: name: test url: "https://pub.dartlang.org" source: hosted - version: "0.12.40" + version: "0.12.41" typed_data: dependency: transitive description: @@ -601,5 +601,5 @@ packages: source: hosted version: "2.1.14" sdks: - dart: ">=2.0.0-dev.55.0 <=2.0.0-dev.61.0.flutter-c95617b19c" + dart: ">=2.0.0-dev.62.0 <=2.0.0-dev.63.0.flutter-4c9689c1d2" flutter: ">=0.1.4 <2.0.0"