Android 在颤振中更改textfield拇指?
我正在尝试更新我的文本字段以使用红色而不是绿色/蓝色。这是我目前的状态 这是我的代码:Android 在颤振中更改textfield拇指?,android,flutter,flutter-layout,Android,Flutter,Flutter Layout,我正在尝试更新我的文本字段以使用红色而不是绿色/蓝色。这是我目前的状态 这是我的代码: TextField( focusNode: focusNode, autocorrect: false, autofocus: false, style: TextStyle(color: Colors.white),
TextField(
focusNode: focusNode,
autocorrect: false,
autofocus: false,
style: TextStyle(color: Colors.white),
cursorColor: Colors.white,
decoration: InputDecoration.collapsed(
hintStyle: TextStyle(color: Colors.white),
hintText: "FirstName"),
)
这在颤振1.17.3中似乎不起作用。从我的调查来看,这是因为这个问题:有几个主题的变化正在进行,但对我来说,颤振1.19.0-1.0.pre是有效的。
final theme = Theme.of(context);
return Theme(data: theme.copyWith(
textSelectionHandleColor: Colors.red,
child: TextField(
focusNode: focusNode,
autocorrect: false,
autofocus: false,
style: TextStyle(color: Colors.white),
cursorColor: Colors.white,
decoration: InputDecoration.collapsed(
hintStyle: TextStyle(color: Colors.white),
hintText: "FirstName"),
)
)