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

How to wrap TapRegion with groupID around DropdownButtonFormField2 to track TapInside / TapOutside with other TapRegions #294

Open
lewinpauli opened this issue Jun 18, 2024 · 0 comments

Comments

@lewinpauli
Copy link

lewinpauli commented Jun 18, 2024

My problem is, I have a DropdownButtonFormField2 inside a OverlayPortal and it closes if I click outside of it.

if I select a value of the dropdown its being detected as an outsideclick, probably because one widget is absorbing the onclick event.

Only one member joins the GestureArena:

flutter: Gesture arena 12   ❙ ★ Opening new gesture arena.
flutter: Gesture arena 12   ❙ Adding: TapAndPanGestureRecognizer#3962c(debugOwner: _TextSelectionGestureDetectorState#e296f)
flutter: Gesture arena 12   ❙ Closing with 1 member.
flutter: Gesture arena 12   ❙ Default winner: TapAndPanGestureRecognizer#3962c(debugOwner: _TextSelectionGestureDetectorState#e296f)

I have multiple widgets that are wrapped with TapRegion and the same groupID to handle the behaviour consistently

It would be really nice to use TapRegion with groupID here as well... if you have an Idea where to put the TapRegion or which widget is absorbing the event let me know

It looks like DropdownButtonFormField2 is also using a Overlay that doesnt overflow the screen, if you know how to realize that I would also be happy to know.

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

1 participant