I have a TextFormField that displays an error message when invalid. It works great, but I'd like the error text to be centered.
Container(
child: TextFormField(
validator: (val) => val.isEmpty ? 'Enter a Username' : null,
onChanged: (val) {setState(() => username = val);},
textAlign: TextAlign.center,
decoration: InputDecoration(
hintText: 'Pick Your Username',
errorStyle: // is it possible to center the errorText?
),
),
),
Using the errorStyle property, I can change the color, weight, size, etc. However, I haven't been able to figure out how to get the little red text that appears when the TextFormField is invalid to center.
Thanks in advance for any advice!

