I have a TextField
within StreamBuilder
that listens to BehaviorSubject
stream. When snapshot has error, the errorText
displays it.
The problem is when TextField
is scrolled out of visible area and scrolled back in the StreamBuilder
rebuilds but error text is gone because this time snapshot.hasError
is false.
How to maintain the error?