-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Add a hover GestureRecognizer #33312
Comments
Agreed! |
I need it!! |
Hover is already built in Listener() |
@kenthinson yes, it's only working when you mouse down and enter. |
I still think it would be nice to have a built-in hover GestureRecognizer that can be used to create a TextSpan. |
@jmagman Can you illustrate what you want to achieve by this addition that can't (easily) be done with |
@dkwingsmt |
Why closed? Is HoverGestureRecognizer already exist or how handle PointerHoverEvent on TextSpan? |
All widgets now receive hover events. The gesture recognizer of TextSpan should receive hover events now (although I haven't specifically tested this one). |
@dkwingsmt Thank you for your answer! But i not understand how handle hover event on TextSpan. Can you help me? How i can write custom gesture recognizer for PointerHoverEvent? |
I have same question about how to handle hover event on TextSpan. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Use case
The hover gesture is an important one on devices with mouse support, particularly when designing flutter for web. A HoverGestureRecognizer would make it easier, for example, to add a recognizer to a TextSpan.
Proposal
Create a GestureRecognizer HoverGestureRecognizer, similar to TapGestureRecognizer.
The text was updated successfully, but these errors were encountered: