From c59effa3db409b2cce989f61dfe17ec953c96376 Mon Sep 17 00:00:00 2001 From: "Guilherme Dev.Master" Date: Sun, 4 Jun 2023 11:21:57 -0300 Subject: [PATCH 1/3] able to set use root navigator --- lib/flushbar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flushbar.dart b/lib/flushbar.dart index 43c38ab..227e248 100644 --- a/lib/flushbar.dart +++ b/lib/flushbar.dart @@ -229,13 +229,13 @@ class Flushbar extends StatefulWidget { route.FlushbarRoute? flushbarRoute; /// Show the flushbar. Kicks in [FlushbarStatus.IS_APPEARING] state followed by [FlushbarStatus.SHOWING] - Future show(BuildContext context) async { + Future show(BuildContext context, {bool useRootNavigator: false}) async { flushbarRoute = route.showFlushbar( context: context, flushbar: this, ) as route.FlushbarRoute; - return await Navigator.of(context, rootNavigator: false) + return await Navigator.of(context, rootNavigator: useRootNavigator) .push(flushbarRoute as Route); } From e76da2073fe5bba860b25b855be3b6cd26f1142b Mon Sep 17 00:00:00 2001 From: "Guilherme Dev.Master" Date: Sun, 4 Jun 2023 11:23:24 -0300 Subject: [PATCH 2/3] lint fix --- lib/flushbar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flushbar.dart b/lib/flushbar.dart index 227e248..77c24b1 100644 --- a/lib/flushbar.dart +++ b/lib/flushbar.dart @@ -229,7 +229,7 @@ class Flushbar extends StatefulWidget { route.FlushbarRoute? flushbarRoute; /// Show the flushbar. Kicks in [FlushbarStatus.IS_APPEARING] state followed by [FlushbarStatus.SHOWING] - Future show(BuildContext context, {bool useRootNavigator: false}) async { + Future show(BuildContext context, {bool useRootNavigator = false}) async { flushbarRoute = route.showFlushbar( context: context, flushbar: this, From dd2376b199fda52b82ac7332d928a405702bacf5 Mon Sep 17 00:00:00 2001 From: "Guilherme Dev.Master" Date: Sun, 4 Jun 2023 11:23:30 -0300 Subject: [PATCH 3/3] dev local --- android/local.properties | 4 ++-- example/pubspec.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/local.properties b/android/local.properties index 9673760..2713e5b 100644 --- a/android/local.properties +++ b/android/local.properties @@ -1,2 +1,2 @@ -sdk.dir=/Users/hamidwakili/Library/Android/sdk -flutter.sdk=/Users/hamidwakili/flutter \ No newline at end of file +sdk.dir=C:\\Users\\masterdev\\AppData\\Local\\Android\\Sdk +flutter.sdk=C:\\Users\\masterdev\\fvm\\versions\\stable \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index 283816a..9f618ce 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: path: ".." relative: true source: path - version: "1.12.30-dev.1" + version: "1.12.30" async: dependency: transitive description: