-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Make it possible to disable tapping to dismiss a tooltip. #137375
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
Conversation
| /// The length of the delay time before dismissing tooltips by tap. | ||
| /// | ||
| /// Defaults to 0 milliseconds (tooltips are dismissed immediately). | ||
| final Duration? tapToDismissDelayDuration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like a weird api, is the goal to be able to have other gesture recognizer on the tool tip to fire? what if the gesture take longer than the duration to fire? for example if someone add a long press gesture recognizer in tooltip.
Should we just have a flag to turn off tap dismissal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense, I changed it to a flag for tap dismissal
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: chunhtai <[email protected]>
issue: #137438
Use case: I want to add action button is tooltip and thus want to disable tap to dismiss a tooltip.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.