如何更改在 Text 或 TextFormField 或 .. 在 Flutter 中选择文本时出现的气泡颜色?
Here是同样的问题,但对于 native 代码。
最佳答案
您可以使用 textSelectionHandleColor属性(property)。
Theme(
data: Theme.of(context).copyWith(
textSelectionHandleColor: Colors.green,
),
child: TextField(),
);
关于flutter - 如何在 Flutter 中的 EditText 上更改气泡(光标下)的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60163744/