简体   繁体   English

扑-如何设置TextFormField的错误样式?

[英]flutter - how to set error style of TextFormField?

I want to change the style of the error that appear automatic after validate field. 我想更改验证字段后自动显示的错误样式。 Can I do it? 我可以做吗? there is no field of error design in TextFormField API TextFormField API中没有错误设计字段

you can use this: 您可以使用此:

TextFormField(
  decoration: InputDecoration(errorStyle: TextStyle(...)), //your desired style here
),

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM