
@override ThemeData appBarTheme(BuildContext context) { assert(context != null); final ThemeData theme = Theme.of(context); assert(theme != null); return theme.copyWith( primaryColor: Colors.white, primaryIconTheme: theme.primaryIconTheme.copyWith(color: Colors.grey), primaryColorBrightness: Brightness.light, primaryTextTheme: theme.textTheme, ); } 是不是只能修改这 4 中样式啊?我尝试了修改其他的样式,发现均无效。
怎么修改默认的提示文字?默认的提示文字一直是 Search,跪求大佬帮忙解答下!不胜感激!
1 StefanJ 2019-06-14 22:23:54 +08:00 |
2 17681880207 OP @StefanJ 我看了这种方式,发现只是使用代理修改了原来定义的一个常量而已。字体、样式,包括 Textfield 都是无法修改的。如果实在不行,我在想是不是只能考虑自己写一个页面来实现。 |
3 StefanJ 2019-06-19 18:55:54 +08:00 使用内置的组件应该只能通过国际化修改,自定义样式就只能自己实现了 |