[英]Flutter: Android system tooltip background color
Does anyone know how to change android system tooltip (on longpress TextField) background color?有谁知道如何更改 android系统工具提示(在长按文本字段上)背景颜色? tried to change with TooltipTheme , canvasColor,popUpMenu.color didn't help试图改变TooltipTheme , canvasColor,popUpMenu.color 没有帮助
You can define the color as part of the decoration
property as follows:您可以将颜色定义为decoration
属性的一部分,如下所示:
Tooltip(
message: 'I am a Tooltip',
child: const Text('Tap this text and hold down to show a tooltip.'),
decoration: BoxDecoration(
// Set your color here
color: Colors.white
),
height: 50,
padding: const EdgeInsets.all(8.0),
),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.