setState() clears the data in form element data flutter. With the given code, one mistake I can think of is creating TextEditingController every time.
1 2 3 4 | @override Widget build(BuildContext context) { var _textController = TextEditingController(); //problem // build and return widgets |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.