another-flushbar
another-flushbar copied to clipboard
Could not navigate to initial route.
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.