Skip to content

Add onTap to CheckedPopupMenuItem #127800

@narumi147

Description

@narumi147

Is there an existing issue for this?

Use case

CheckedPopupMenuItem is inherit from PopupMenuItem. PopupMenuItem has onTap, textStyle and labelTextStyle which is not in the constructor of CheckedPopupMenuItem.

Proposal

Simply add them to constructor:

  const CheckedPopupMenuItem({
    super.key,
    super.value,
    this.checked = false,
    super.enabled,
    super.padding,
    super.height,
    super.mouseCursor,
    super.child,
    // new
    super.onTap,
    super.textStyle,
    super.labelTextStyle,
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions