Skip to content

ExpansionTile.backgroundColor & ExpansionTile.collapsedBackgroundColor removes splash effect #107113

@TzviPM

Description

@TzviPM

Steps to Reproduce

  1. Open this demo on DartPad: https://dartpad.dev/bb018c7bfe104bbfe78185a7fc6641e4
  2. Run the sample
  3. Expand the first ExpansionTile widget
  4. Attempt to hover over the widget

Expected results: The opacity should be changed on hover to reflect the tap affordance of the widget (i.e. it's a button)

Actual results: Overriding the backgroundColor of the ExpansionTile also overrode the hover opacity.

Code sample

See https://dartpad.dev/bb018c7bfe104bbfe78185a7fc6641e4

Screen Recording:

flutter-expension-tile-bug.webm

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.found in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions