Skip to content

AnimatedOpacity does not respect animation curve #19617

@sir-boformer

Description

@sir-boformer

AnimatedOpacity is always linear, because the root animation controller is used instead of the curved animation. That means the curve passed to the widget is ignored:

_opacityAnimation = _opacity.animate(controller);

I noticed this when I copied the code to created an AnimatedScale widget. The fix is a one-liner:

    _opacityAnimation = _opacity.animate(animation);

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