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: diff --git a/lib/flushbar.dart b/lib/flushbar.dart index 43c38ab..77c24b1 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); }