Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

How can I push a new page without buildContext? #8

Open
PandaCVBRO opened this issue Feb 25, 2019 · 2 comments
Open

How can I push a new page without buildContext? #8

PandaCVBRO opened this issue Feb 25, 2019 · 2 comments

Comments

@PandaCVBRO
Copy link

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.

@PandaCVBRO
Copy link
Author

PandaCVBRO commented Mar 3, 2019

I got an ungainly solution: cache the buildContext of the root.

Is there any other way?

@filiph
Copy link
Contributor

filiph commented Aug 27, 2019

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: #3 (comment). 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.

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

No branches or pull requests

2 participants