Second click required to open menu
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
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.
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()