[英]Flutter - How to change the color of the text being selected by the cursor?
我需要更改 cursor 突出显示的文本的颜色。 我可以使用textSelectionTheme
更改 cursor 的颜色,它的选择和处理程序。 但是,如何更改突出显示文本的颜色?
ThemeData
的主题数据。
get _lightTheme => ThemeData(
disabledColor: Colors.grey.shade400,
textSelectionTheme: TextSelectionThemeData(
cursorColor: AppPalette.primaryColorLight,
selectionColor: AppPalette.primaryColorLight.withOpacity(0.5),
selectionHandleColor: AppPalette.primaryColorLight,
),
);
目前这是不可能的。 您可以在 github 中跟踪此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.