How to get the TextField value in flutter?

Posted by Andre Scott | Updated on

IF you want to get the TextField value in flutter? Create your TextEditingController as a global variable in your State class and set it into your TextField widget.

Now you can get the value using:


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.

Related Questions & Answers