` TextFormField( maxLength: 50,
decoration: const InputDecoration(label: Text('Name')),
keyboardType: TextInputType.text,
validator: (value) {
if (value == null ||
value.isEmpty ||
value.trim().length <= 1 ||
value.trim().length > 50) {
return "Must be between 1 and 50 characters";
}
return null;
},
),`
Error message font size
You use the errorStyle parameter of the inputdecorationtheme: