【发布时间】:2019-11-18 19:29:38
【问题描述】:
所以在我的颤振应用程序中,我创建了 TextFormField 以用作这样的输入(并将其返回到脚手架中):
final password = TextFormField(
controller: passController,
autofocus: false,
obscureText: true,
decoration: InputDecoration(hintText: 'Password'),
style: new TextStyle(color: Colors.orange),
);
我想更改themeData 中的style 属性,但找不到要指定的属性。
我能找到的最近的一个是textTheme: new TextTheme(body1: new TextStyle(color: Colors.orange)),但是这个对我的 TextFormField 没有任何作用。
如何设置 TextFormField 样式?请帮忙,我对 Dart 和编程都很陌生。我现在 13 岁,没有人可以帮助我处理这些类型的事情。
P.S:如果需要,完整的代码在 GitHub 上:https://github.com/Legolaszstudio/novynotifier
【问题讨论】:
标签: flutter dart flutter-layout