Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip not show #11

Closed
tuemaytinh1981 opened this issue Oct 14, 2020 · 1 comment
Closed

Tooltip not show #11

tuemaytinh1981 opened this issue Oct 14, 2020 · 1 comment

Comments

@tuemaytinh1981
Copy link

I have code: ...
choiceItems: C2Choice.listFrom<String, String>(
source: options,
value: (i, v) => v,
label: (i, v) => v,
tooltip: (i, v) => v,
),
...
tooltip not show ???

@davigmacode
Copy link
Owner

To be honest the parameter tooltip was not well tested when I released version 2.0.0, I just looked at the parameter tooltip in the RawChip class and added it to the C2Choice class.

I think this is a bug with Flutter itself (I use flutter stable v1.20.3), because it doesn't work either when using ChoiceChip or FilterChip, after seeing this code it turns out that the tooltip parameter only works on Chip by filling in the onPressed parameter instead of onSelected, lucky RawChip has onPressed, so I've fixed it, please upgrade to version 2.0.1

Thank you for reporting this issue

davigmacode added a commit that referenced this issue Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants