To use without a Form, pass a GlobalKey to the constructor and use GlobalKey. currentState to save or reset the form field . When a controller is specified, its TextEditingController. text defines the initialValue.
How do I use TextFormField without form in Flutter?
To use without a Form, pass a GlobalKey to the constructor and use GlobalKey. currentState to save or reset the form field . When a controller is specified, its TextEditingController. text defines the initialValue.