Does anyone know how to change android system tooltip (on longpress TextField) background color? tried to change with TooltipTheme , canvasColor,popUpMenu.color didn't help
You can define the color as part of the decoration
property as follows:
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),
),
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.