i'm using getx for state management. After type text or display an error message of textFormField, then i navigate to another screen. When i navigate back to this screen, i want to clear text input and error message, because this screen was not dispose, its just deactivate, but i realize getx doesn't have deactivate method. So I don't know how to handle it. Please help.
Asked
Active
Viewed 405 times
0

hungnv
- 23
- 3
2 Answers
0
Navigator.of(context).pop(_textEditingController.text);
Simply Navigate with your input value .

Tasnuva Tavasum oshin
- 1
- 1
- 17
- 28