another-flushbar icon indicating copy to clipboard operation
another-flushbar copied to clipboard

Could not navigate to initial route.

Open h-assefi opened this issue 3 years ago • 0 comments

This is the error message I get

Could not navigate to initial route. The requested route name was: "/flushbarRoute" There was no corresponding route in the app, and therefore the initial route specified will be ignored and "/" will be used instead.

And, this is how I used Flushbar

Flushbar(
          title:  "ERROR",
          message:  "ErrorMessage",
          duration: const  Duration(seconds: 3),
          backgroundColor: Styles.getColorError(),
        ).show(NavigationService.navigatorKey.currentContext!);

NavigationService.navigatorKey.currentContext is a global context key.

h-assefi avatar Jun 16 '22 09:06 h-assefi