-
-
Notifications
You must be signed in to change notification settings - Fork 860
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 onSecondaryTap (right-click for windows) callback #1444
Comments
Hi @Richard-Walter, I've investigated a bit on how to implement this feature, unfortunately it's not as easy as it seems because of a dependency to the package positioned_tap_detector_2 which hasn't been updated to support the If we want to implement this feature we'll have to re-implement the |
Thanks for getting back to me. I think it would be a useful feature to
have. Hope you can get it to work :)
…On Fri, Feb 17, 2023 at 4:30 AM Guillaume Roux ***@***.***> wrote:
Hi @Richard-Walter <https://github.com/Richard-Walter>, I've investigated
a bit on how to implement this feature, unfortunately it's not as easy as
it seems because of a dependency to the package positioned_tap_detector_2
<https://pub.dev/packages/positioned_tap_detector_2> which hasn't been
updated to support the onSecondaryTap event.
If we want to implement this feature we'll have to re-implement the
PositionedTapDetector2 widget by ourselves, which might not be a bad
thing as we would rely on one less dependency but implies a bit of work.
—
Reply to this email directly, view it on GitHub
<#1444 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALMOWACPKZTX5BWRKTKGJPTWXZP35ANCNFSM6AAAAAAUV2XD6M>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What do you want implemented?
Please add the onSecondaryTap click callback so windows users can capture a right-click event when clicking on the map.
What other alternatives are available?
Currently, having to use the onLongPresss callback but this is not intuitive too windows users:
Can you provide any other information?
See https://api.flutter.dev/flutter/widgets/GestureDetector/onSecondaryTap.html
Heres a package that is capturing a right-click event to display a context menu: https://pub.dev/packages/native_context_menu.
Platforms Affected
Windows, MacOS, Linux
Severity
Annoying: Currently have to use workarounds
Requirements
The text was updated successfully, but these errors were encountered: