Skip to content

Listening to a text controller inside Riverpod #1440

Answered by mark8044
2kjm asked this question in Q&A
Discussion options

You must be logged in to vote

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

                WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
                              ref.read(provider)....
                    });

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@2kjm
Comment options

@msarkrish
Comment options

Comment options

You must be logged in to vote
6 replies
@tbm98
Comment options

@2kjm
Comment options

@mark8044
Comment options

@2kjm
Comment options

@XuanTung95
Comment options

Answer selected by 2kjm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants