我更改了应用程序颜色。但是TextFormField
变得非常隐蔽。
有什么方法可以修改TextFormField
,因为它更好。
谢谢。
最佳答案
爱是正确的。您可以在此处使用TextFormField类的构造函数:Flutter documentation。另一个例子:
TextFormField(
decoration: InputDecoration(
filled: true,
fillColor: Colors.lightBlue[50],
border: OutlineInputBorder(),
icon: Icon(Icons.person),
hintText: 'What do people call you?',
labelText: 'Name',
),
onSaved: (String value) {
// This optional block of code can be used to run
// code when the user saves the form.
},
),
关于flutter - 如何在Flutter中反转TextFormField的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61454496/