Skip to content

Missing animated widgets for common transformations #77081

@flar

Description

@flar

While looking at the API changes that might be needed to implement bitmap scaling on top of the existing set of Transform-related widgets, it was pointed out that our set of animated widgets that deal with transforms is incomplete.

The Transform widget provides a way to provide a non-animated change to the transform of a child, with common variations for scales and rotations.

There are also ScaleTransition and RotationTransition widgets that can perform an explicit animation of either scaling or rotating a widget.

What seems to be missing are AnimatedScale and AnimatedRotate(ion) widgets, along the lines of AnimatedOpacity and its relation to the static Opacity widget. These widgets would have a scale or rotate parameter and the widget would animate to the new value at the RenderObject level if the value is ever replaced.

There is AnimatedSize which is primarily aimed at changing its size over time as an implicit reaction to a change in the child's size (whether due to layout or a new structure within the child). This widget could be pressed into service to perform an animated Scale, but it isn't as straightforward as an AnimatedScale widget would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: animationAnimation APIsframeworkflutter/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