Reputation: 2866
So there are 2 types in explicit animations right?
Aren't ScaleTransition and Transform.scale both explicit animations?
Why do you need two methods?
Upvotes: 1
Views: 1911
Reputation: 2900
Transform.scale
is a static scaling widget, that cannot perform animation itself, and should be wrapped inside a TweenAnimationBuilder
. The animation cannot be controlled once completed.
ScaleTransition
takes Animation
as a value of its scale
parameter which is controlled by AnimationController
hence it's an explicit animation.
Upvotes: 2