You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to do this by looking at TapGestureRecognizer, you can see how it's implemented, and that recognizer can participate in the gesture arena. Basically you have to use a lower level interface than GestureDetector.
It would be good, however, to support onTertiaryTap* for the gesture detector.
creativecreatorormaybenot commented on Jul 30, 2020
@gspencergoog Yes, thank you. I was aware of that, however, it would be useful to have this option on the widget level. Do you think making a PR would be benificial?
creativecreatorormaybenot commented on Jul 30, 2020
Yes, I agree. If you'd like to make a PR, that would be great, and otherwise we will get to it eventually. You'll want to look at onSecondaryTap{Up,Down,Cancel} on the GestureDetector, and call it onTertiaryTap{Up,Down,Cancel}. There shouldn't be a plain onTertiaryTap because we don't support double-tap on the secondary button, much less the middle button, and onTap is there mainly to be able to determine the difference between double and single tap.
Reacted by creativecreatorormaybenot
creativecreatorormaybenot commented on Jul 31, 2020
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
goderbauer commentedon Jul 29, 2020
/cc @dkwingsmt
gspencergoog commentedon Jul 29, 2020
It's possible to do this by looking at
TapGestureRecognizer, you can see how it's implemented, and that recognizer can participate in the gesture arena. Basically you have to use a lower level interface thanGestureDetector.It would be good, however, to support
onTertiaryTap*for the gesture detector.creativecreatorormaybenot commentedon Jul 30, 2020
@gspencergoog Yes, thank you. I was aware of that, however, it would be useful to have this option on the widget level. Do you think making a PR would be benificial?
creativecreatorormaybenot commentedon Jul 30, 2020
I mean that it would be nice to not have to use
RawGestureDetectoror a customRenderObject.gspencergoog commentedon Jul 30, 2020
Yes, I agree. If you'd like to make a PR, that would be great, and otherwise we will get to it eventually. You'll want to look at
onSecondaryTap{Up,Down,Cancel}on theGestureDetector, and call itonTertiaryTap{Up,Down,Cancel}. There shouldn't be a plainonTertiaryTapbecause we don't support double-tap on the secondary button, much less the middle button, andonTapis there mainly to be able to determine the difference between double and single tap.creativecreatorormaybenot commentedon Jul 31, 2020
@gspencergoog That sounds good. I think that I will open a PR for it 👍🏼
creativecreatorormaybenot commentedon Aug 3, 2020
@gspencergoog I openend a PR, according to how I understood your guidance.
I really hope that I got it right 😂 Performing changes for that is a mess 😅
gspencergoog commentedon Aug 3, 2020
Thanks! I'm actually out on vacation this week, so it'll be a bit until I get to it, but maybe someone else will take a look before then.
github-actions commentedon Aug 18, 2021
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
flutter doctor -vand a minimal reproduction of the issue.