Skip to content

Conversation

@anisalibegic
Copy link
Contributor

@anisalibegic anisalibegic commented Dec 28, 2018

Make the tooltip background color same as the theme background color. Currently, it takes the default theme background color which is the dark grey. Basically, I made it so it takes the context's theme background color which can be overwritten when defining MaterialApp theme.

@zoechi zoechi added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Dec 28, 2018
@AdamskiMarcin
Copy link

+1, but afaik the material design spec mentions only the dark color for the tooltip background. Is this change not going to break the existing functionality in some cases? Maybe an additional bool param should be added to tooltip widget constructor to assure backwards compatibility.

@dblokhin
Copy link

I think this might be closed due to the merged #36856 .

@shihaohong
Copy link
Contributor

Yes, there is now a TooltipTheme inherited widget and a ThemeData.tooltipTheme on the master branch. Once this rolls into stable, these widgets should be available to provide global configuration of the tooltip background colors. I'll close this pull request. Thank you for showing interest in this feature!

@shihaohong shihaohong closed this Jul 26, 2019
@shihaohong shihaohong self-assigned this Jul 26, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants