Skip to content

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

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.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    P1High-priority issues at the top of the work list
    platform-webWeb applications specifically
    c: new featureNothing broken; request for a new capability
    on Jun 8, 2021
  2. self-assigned this
    on Jan 18, 2023
  3. github-actions commented on Mar 3, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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