Flutter text SelectionThemeData未更改颤振中的selectionHandleColor
在物理设备和模拟器上测试。 正如我们所知,textSelectionHandleColor不受欢迎。所以,我决定对我的应用程序代码进行一些更改,不幸的是,当我们创建新应用程序时,selectionHandleColor仍然是默认的蓝色Flutter text SelectionThemeData未更改颤振中的selectionHandleColor,flutter,dart,textfield,textselection,Flutter,Dart,Textfield,Textselection,在物理设备和模拟器上测试。 正如我们所知,textSelectionHandleColor不受欢迎。所以,我决定对我的应用程序代码进行一些更改,不幸的是,当我们创建新应用程序时,selectionHandleColor仍然是默认的蓝色 TextSelectionTheme( data: TextSelectionThemeData( cursorColor: kLightGreen, select
TextSelectionTheme(
data: TextSelectionThemeData(
cursorColor: kLightGreen,
selectionHandleColor: kLightGreen,
selectionColor: kGrey),
child: TextField(
keyboardType: TextInputType.number,
style: TextStyle(
color: kOffWhite,
letterSpacing: 1.5,
),
decoration: InputDecoration(
labelText: 'Label',
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: kLightGreen),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: kLightGreen),
),
hintText: 'Hint',
hintStyle: TextStyle(
color: kOffWhite,
letterSpacing: 1.5,
),
labelStyle: TextStyle(
color: kLightGreen,
letterSpacing: 1.5,
),
),
),
),
光标颜色,选择颜色已更改,句柄颜色除外。我尝试了所有可能的方法来改变文本选择手柄的颜色