Skip to content

Add onLongPress option to DropdownMenuItem#307

Closed
Colton127 wants to merge 2 commits intoAhmedLSayed9:masterfrom
Colton127:master
Closed

Add onLongPress option to DropdownMenuItem#307
Colton127 wants to merge 2 commits intoAhmedLSayed9:masterfrom
Colton127:master

Conversation

@Colton127
Copy link

No description provided.

@AhmedLSayed9
Copy link
Owner

AhmedLSayed9 commented Mar 1, 2026

I'm going to close this for now — dropdown menu items are meant to be simple select-and-go interactions, and adding an onLongPress callback would introduce a hidden gesture that most users wouldn't expect or discover. For cases where this kind of interaction is needed, wrapping the child widget in a GestureDetector should work well enough.

Also worth noting: the current implementation doesn't call _handleOnTap on long press while it should do.

That said, if you have a specific use case in mind, I'd be happy to hear about it — feel free to open an issue describing the scenario and we can revisit.

@AhmedLSayed9 AhmedLSayed9 added the wontfix This will not be worked on label Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants