Skip to content

Implement similar widget toAnimatedDefaultTextStyle but for child Icon #137251

@JGeek00

Description

@JGeek00

Is there an existing issue for this?

Use case

I have a Rowwith a Textand an Icon as children. I'm using AnimateDefaultTextStyle to animate the color change and the fontWeight change on the text, but I want to apply that same color animation that the text has, to the icon.

Proposal

AnimateDefaultTextStyle should also affect to child Icon. Based on the use case I commented, If I want to also animate the color change on the icon, apart of the text, I have to create an animation controller and the animation just for the icon, because the text does that with the AnimateDefaultTextStyle.
The alternative would be to create a widget similar to AnimateDefaultTextStyle but for Icon.

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.team-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