-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Closed
Labels
a: animationAnimation APIsAnimation APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
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
Labels
a: animationAnimation APIsAnimation APIsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.