Hi all,
Apologies if this has been asked before.. I have signed up in desperation as I can’t find a reliable solution. Is there a way I can use Form validation with the TextFormField widget, that triggers validation but completely disables the error text (and therefore stops the display jumping when an error occurs)?
I am currently using:
TextFormField
(
validator: ‘’ // returns no string, but triggers validation error state
errorStyle: TextStyle(height: 0, fontSize: 0) // sets size of error text as minimal as possible, but still results in slight jump
)
Ideally I would like to roll my own validation code, that still triggers Form validation, and then handle painting the border of the form widget a chosen colour myself.
Kind regards,
Ben.