How can I push a new page without buildContext?
In Redux I can use navigatorKey.currentState.pushNamed('/someRoute'); to push a new page with out pass the context.
How can I do the same thing in flutter-provide?
example: I want to push the Login Page in my SomeNetwork.dart When get a response with status_code = 401.
I got an ungainly solution: cache the buildContext of the root.
Is there any other way?
Hi @PandaCVBRO,
Sorry for the complete silence on this issue (and the repo in general). I've been unsure about the future of the provide package but now I've made the decision to let it go: https://github.com/google/flutter-provide/issues/3#issuecomment-525503648. Please comment over at the linked issue if you have a strong desire to keep the development of this package alive (if so, please link to your fork if you have it).
To be clear, the package will always be available at https://pub.dev/packages/provide — pub doesn't allow packages to "disappear". It won't be updated, though.