You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lemme see if I can follow up with the Flutter team on why they don't provide a navigatorKey in the same way... Feels like a problem more folks are going to run into!
I'll close this one out, since I don't think this library should offer a workaround to the underlying problem, and now the underlying problem is solved :)
With a
MaterialApp
you can provide thenavigatorKey
and use that in your middleware to redirect the user if necessary.But
CupertinoApp
doesn’t have anavigatorKey
.Now what we are doing is to add the
context
to the action so we have access to it in the middleware, but this seems very wrong.Do you have a proposal on how to do this best?
The text was updated successfully, but these errors were encountered: