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

Second click required to open menu #3

Open
Solido opened this issue Jun 18, 2021 · 2 comments
Open

Second click required to open menu #3

Solido opened this issue Jun 18, 2021 · 2 comments

Comments

@Solido
Copy link

Solido commented Jun 18, 2021

Hello, thanks for this package that I am exploring !

Tried a basic text adding menu to item on a columns

When a context menu is open and I right click another entries,
instead of opening a new context and closing the previous one,
it first close the first menu then another clic is required to open a new context.

Still exploring this package maybe I miss a parameter.

Cheers

@ARau87
Copy link

ARau87 commented Jul 30, 2022

Unfortunately it is only possible to open the menu using left click or long tap.

return GestureDetector( behavior: HitTestBehavior.translucent, onSecondaryTap: showMenu, onLongPress: enableLongPress ? showMenu : null, child: child, );

It would be very nice if there was an option to show the context menu on a normal tap as well.

@esDotDev
Copy link
Contributor

esDotDev commented May 28, 2024

Thanks for the report, the issue is that the layer that capture clicks for close is layered above any other context regions.

We could add a parameter to disable this layer, but then you would have to manage the close call yourself. Probably by adding your own container that sits underneath all the regions and calls ContextMenuOverlayState.of(context).hide()

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

3 participants