Flutter Excpetion using Provider to change Variable from child to parent. #702
Unanswered
Michele-x98
asked this question in
Q&A
Replies: 2 comments
-
Hello Could you reformulate the bug description/expected behaviour? I do not understand what the bug is. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I opened a question on stack overflow where I explain the problem. Maybe it's clearer and you can also see the exception logs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When i binding a Boolean variable in ModalProgressHUD to a watch() provider, and I try to change it in another Widget, the child widget are disposed and I can't access to context, for example to navigate to a another page.
To Reproduce
Expected behavior
The expected behaviour is that when I do an async call, via provider I can change the "inAsync" variable to true, and the circular progress indicator appear, then, when the future complete, I want to set inAsync to false, and after the progress disappear, navigate to a new page or do somethings that require the context.
Beta Was this translation helpful? Give feedback.
All reactions