So there are 2 types in explicit animations right?
Aren't ScaleTransition and Transform.scale both explicit animations?
Why do you need two methods?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.