Home > Net >  Flutter, ScaleTransition vs Transform.scale
Flutter, ScaleTransition vs Transform.scale

Time:10-27

So there are 2 types in explicit animations right?

Aren't ScaleTransition and Transform.scale both explicit animations?

Why do you need two methods?

CodePudding user response:

Transform.scale is a static scaling widget, that cannot perform animation itself, and should be wrapped inside a TwennAnimationBuilder. 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.

  • Related