Changing state of parent using flutter hooks #271
Unanswered
thunderstorm010
asked this question in
Q&A
Replies: 1 comment
-
You should use an Inheritedwidget, such as Provider |
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
-
When building an theme changing app, for example, we would make a method in the parent widget like;
and write a helper method for changing the state.
How can this be achieved in flutter-hooks?
Beta Was this translation helpful? Give feedback.
All reactions