Skip to content

Allow Chip background to be state adaptive #101325

@suesitran

Description

@suesitran

Use case

When I create a new Chip using Material Chip, I want to be able to set different background color to different material state.

Currently only Text color in chip is state adaptive.

Proposal

  1. Allow background color to receive MaterialStateColor
  2. Use MaterialStateProperty to resolve color base on MaterialStateColor

Metadata

Metadata

Assignees

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.

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions