You can control it using a boolean variable. enabled=true means it will act as an editing text field whereas enabled=false will Disable the TextField Widget.
Read moreHow do I edit text in flutter?
Editable Text in Flutter.
Read moreHow do you style a TextField in flutter?
Some More Flutter TextField Decoration
Read moreHow do you get TextField text in flutter?
Display the current value of the text field.
Read moreWhat is focus node in Flutter?
FocusNode basically focuses on the keyboard event. Let’s suppose you want to control the TextFormField widget as soon as the user taps on it, then you use FocusNode . So, FocusNode class is basically an object that can be used to obtain keyboard focus and to handle keyboard events .
Read moreWhat is onSaved in Flutter?
onSaved. An optional method to call with the final value when the form is saved via FormState .
Read moreWhat is the use of controller in Flutter?
In flutter, controllers are a means to give control to the parent widget over its child state . The main selling point of controllers is that they remove the need of a GlobalKey to access the widget State. This, in turn, makes it harder to do anti-pattern stuff and increase performances.
Read more