Skip to content

Make it possible to change the pressed overlay color for selection controls #70828

@perclasson

Description

@perclasson

Use case

Currently it's only possible to modify focusColor and hoverColor for selection controls. The pressed overlay color is based of the activeColor. We should make it possible to have a different overlay color independent from the activeColor.

Proposal

Add a MaterialStateProperty<Color> overlayColor argument to the selection controls that allow us to modify it in all its MaterialStates.

Also update the selection control themes to make the overlayColor used in the pressed state.

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.frameworkflutter/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