Skip to content

Custom context menus don't show up for Flutter Web but do for Flutter Desktop #84219

@jacob314

Description

@jacob314

Steps to Reproduce

Create a custom context menu in Flutter. Flutter Web still shows the default browser context menu while Flutter Desktop shows a custom context menu.

Use case:
In Dart DevTools I would like to show some custom actions as part of the right click menu to navigate to other portions of Dart DevTools.
Screen Shot 2021-06-08 at 1 20 29 PM
When Dart DevTools is run in chrome, I just see the built in context menu.
Screen Shot 2021-06-08 at 1 22 20 PM

https://www.jquery-az.com/jquery/demo.php?ex=121.0_2
shows an example of a jquery library that likely uses preventDefault() to enable custom right click context menus.

#78671 is a related issue to suppress the browser default right click context menu but not supportcustom right click menus.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions