Skip to content

Rename AnimatedSize to RawAnimatedSize and then create a new AnimatedSize to wrap RawAnimatedSize #40475

@efortuna

Description

@efortuna

Use case

AnimatedSize bucks the naming convention of "all AnimatedFoo widgets were implicitly animated" -- it takes a vsync parameter.

Proposal

I discussed this with Ian on Discord. He pointed that this is because AnimatedSize is implemented as a render object widget. We should probably rename it RawAnimatedSize and then create a stateful widget called AnimatedSize that wraps it, and knows how to create its own ticker provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: animationAnimation APIsc: API breakBackwards-incompatible API changesc: proposalA detailed proposal for a change to Flutterframeworkflutter/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