I want to set a bigger font size for error message validation in TextFormField but I don't know how.
Just put a container as a parent of textfield can solve the error.
How to Handle Input Data In TextFormField In Flutter Using Controller. To handle user input in TextFormField, create an object of TextEditingController class. Create a TextEditingController object like below and assign it to the controller property of TextFormField. Its object will hold the input data.
We already have a SnackBar widget on Flutter to show such errors or warning messages. To display it using ScaffoldMessenger . Inside the SnackBar, the content is a simple text. If you click on the show message button.
For this you have to use InputDecoration
TextFormField( decoration: InputDecoration( errorStyle: TextStyle( fontSize: 16.0, ), ), ... )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With