Closed yusuphwickama closed 1 month ago
Will add it, meanwhile use setState errorText in the validator
If you're just changing the text style and padding, consider using errorStyle and errorPadding passing the decoration
If you're just changing the text style and padding, consider using errorStyle and errorPadding passing the decoration
Thanks, I'm not seeing this parameter. Its available in which version?
Will add it, meanwhile use setState errorText in the validator
I have multiple fields, this is just one of them so this approach might quickly get complicated.
Will add it, meanwhile use setState errorText in the validator
I have multiple fields, this is just one of them so this approach might quickly get complicated.
You can change it from the theme level to all form fields:
ShadThemeData(
decoration: ShadDecoration(
labelStyle: TextStyle(color: Colors.blue),
errorStyle: TextStyle(color: Colors.orange),
errorPadding: const EdgeInsets.symmetric(horizontal: 6),
labelPadding: const EdgeInsets.symmetric(horizontal: 6),
),
),
or just for the Input fields
ShadThemeData(
inputTheme: ShadInputTheme(
decoration: ShadDecoration(
labelStyle: TextStyle(color: Colors.blue),
errorStyle: TextStyle(color: Colors.orange),
errorPadding: const EdgeInsets.symmetric(horizontal: 6),
labelPadding: const EdgeInsets.symmetric(horizontal: 6),
),
),
)
or for each single field widget passing the decoration
Thanks
Hello,
I have this field with a custom validator. How can I access the error message from the validator and display it in my custom Text widget?
I want to assign it to
errorText