Skip to content

Expose animation parameters for the [ExpansionTile] widget #138047

@matheus-kirchesch

Description

@matheus-kirchesch

Is there an existing issue for this?

Use case

The default ExpansionTile animation looks glitchy because the speeds in which the tile expands and collapses are different.

I will post 3 videos comparing the default one, one with a linear curve and another one with a linear curve and a little longer duration so what I mean is more clear.

Default ExpansionTile animation

Screen_Recording_20231107_203914.mp4

ExpansionTile with linear curve

Screen_Recording_20231107_204001.mp4

ExpansionTile with linear curve and a little longer animation (a little bit smoother)

Screen_Recording_20231107_204258.mp4

Proposal

The proposed fix is simply to expose parameters to let us control the curve and duration of the expansion animation.
image
image

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: 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.r: fixedIssue is closed as already fixed in a newer versionteam-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