How to Update Particular TextFormFiled value Using TextEditing Controller after fetching data from API in flutter?
Asked
Active
Viewed 46 times
0
-
1Does this answer your question? [How do you change the value inside of a textfield flutter?](https://stackoverflow.com/questions/51127241/how-do-you-change-the-value-inside-of-a-textfield-flutter) – maxmitz Jul 05 '22 at 11:05
-
this one : https://stackoverflow.com/q/72864668/18150339 – Panchal Ravi Jul 05 '22 at 11:12
1 Answers
0
declare a text editing controller as
var text_controller=TextEditingController();
then inside textfield,
TextField(
controller : text_controller,
)
then change the value of that particular textfield as,
setState(() {
text_controller.text='something';
});

Sadhik
- 304
- 1
- 6