Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter text SelectionThemeData未更改颤振中的selectionHandleColor_Flutter_Dart_Textfield_Textselection - Fatal编程技术网

Flutter text SelectionThemeData未更改颤振中的selectionHandleColor

Flutter text SelectionThemeData未更改颤振中的selectionHandleColor,flutter,dart,textfield,textselection,Flutter,Dart,Textfield,Textselection,在物理设备和模拟器上测试。 正如我们所知,textSelectionHandleColor不受欢迎。所以,我决定对我的应用程序代码进行一些更改,不幸的是,当我们创建新应用程序时,selectionHandleColor仍然是默认的蓝色 TextSelectionTheme( data: TextSelectionThemeData( cursorColor: kLightGreen, select

在物理设备和模拟器上测试。

正如我们所知,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,
                    letterSpacing: 1.5,
                  ),
                  labelStyle: TextStyle(
                    color: kLightGreen,
                    letterSpacing: 1.5,
                  ),
                ),
              ),
            ),
光标颜色,选择颜色已更改,句柄颜色除外。我尝试了所有可能的方法来改变文本选择手柄的颜色