-
I want to listen to a textcontroller and dispatch an action if it's empty. While I try to implement inside initstate i get a Badstate error. What is the right way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
mark8044
Jun 3, 2022
Replies: 2 comments 8 replies
-
@2kjm Can you post the error you have received? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Without some code its hard to say what the exact issue is, but my goto general solution for state situations is to wrap a ref.read inside a
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
2kjm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without some code its hard to say what the exact issue is, but my goto general solution for state situations is to wrap a ref.read inside a
postFrameCallBack
, for better or worse