Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

error textfield getting clear flutter

The issue is that you are persisting objects inside a StatelessWidget.

Opening the keyboard tends to rebuild the whole screen (which is fine). But in
my case rebuilding cause your TextEditingController to be GCed because i 
stored them inside a StatelessWidget
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #error #textfield #clear #flutter
ADD COMMENT
Topic
Name
1+6 =