Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not navigate to initial route. #78

Open
h-assefi opened this issue Jun 16, 2022 · 0 comments
Open

Could not navigate to initial route. #78

h-assefi opened this issue Jun 16, 2022 · 0 comments

Comments

@h-assefi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant