ConsumerStateless Widget does not rebuild after Changenotifier changed #3524
Unanswered
KevinCCucumber
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
-
I have a changenotifier in a stateless widget. This widget contains a switch that should reflect the current setting, wich it does. However, toggling the setting via the switch does not trigger a rebuild of the widget at all.
To my understanding, ref.watch should rebuild the widget if anything changes. ( And the notifier sends a signal)
Why does my state not change?
This is my Settings provider:
These are my getter and setter Methods:
And this is the code calling it:
Beta Was this translation helpful? Give feedback.
All reactions