I'm using TextFormField
with OutlineInputBorder
. I need the text inside to have padding on the right and left. For this I'm using:
contentPadding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
Everything works well. However, I also use a validator
. And if an incorrect value is entered in the field, an error is displayed.
But I need the padding to not apply to the error. Can you tell me if this can be achieved? For an example, look at the picture:
Is it possible to change padding only for my error text ?
Please, help me.
there is no possible solution at this time . if we inspect the TextFormField , the contentPadding also control the error text to
but we can achieve that
this is my code
note that
out put will be