Skip to content

PopupMenuButton uses color property for icon color #127802

@James1345

Description

@James1345

Is there an existing issue for this?

Steps to reproduce

Create app with PopumMenuButton
Set icon using icon property e.g. icon: Icon(Icons.more_horiz
Set color using color property e.g. color: Colors.white

Expected results

Documentation for the color property:

If provided, the background color used for the menu.

If this property is null, then [PopupMenuThemeData.color] is used.
If [PopupMenuThemeData.color] is also null, then Theme.of(context).cardColor is used.

Expect that the color of the popup card change

Actual results

The color of the icon changes.

Code sample

Code sample
PopupMenuButton(
  icon: Icon(Icons.more_horiz),
  color: Colors.white,
  itemBuilder: (context) => [...]
)

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10found in release: 3.11Found to occur in 3.11frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages teamworkaround availableThere is a workaround available to overcome the issue

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions