问题描述
已在物理设备和模拟器上进行了测试。
众所周知,不推荐使用textSelectionHandleColor。因此,我决定对我的应用程序代码进行一些更改,不幸的是,当我们创建新应用程序时,selectionHandleColor仍然是我们得到的默认蓝色。
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,labelStyle: TextStyle(
color: kLightGreen,
光标颜色,选择颜色已更改,但手柄颜色除外。我尝试了所有可能的方法来更改文本选择手柄的颜色。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)