Skip to content

Context menu API #30976

@dkwingsmt

Description

@dkwingsmt

Objective

Design a set of API for context menu that meets the following requirements:

  • Easy and intuitive for developers to apply to their custom widgets
  • Provide default context menu for certain widgets:
    • EditableText
    • SelectableText (upcoming)
    • (Please add more)
  • Widgets with default context menu should allow override
  • Menu should be rendered in proper style, which should be apparent to widgets
    • In a material app it should be rendered in Material PopupMenu
    • In a desktop app or on Web, it should be rendered in native menu (long-term goal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: desktopRunning on desktopc: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions