Provider inside navigation inside on pressed #806
Unanswered
shaunramsey
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my main page, I have streambuilders grabbing and processing some data.
When the user presses a button, they are taken away to another page to view some of that data.
I threw the processed data into a provider to launch the new page:
I have an onpressed that looks something like this:
Navigator.push(context,MaterialPageRoute( builder: (context) => myProvider));
myProvider is a Provider wrapped around the widgets to build.
When I'm in the second page, the streambuilders update the data, but it doesn't mark the new page as dirty for a rebuild,
even though that page is using Provider.of . I can navigate back and then into the page again to force the update that I know should be there.
Are listeners false by default inside onpressed?
How do I make this work for me?
Beta Was this translation helpful? Give feedback.
All reactions