Animations guide
When & Which Animation?
Implicit Animation
- built-in implicit animation widget: ⏩ look for widgets named
AnimatedFoowhere “Foo” is the property you want to animate, such asAnimatedOpacity. Also checkAnimatedContaineras it is an extremely powerful and versatile widget for many different implicit animations.AnimatedFooare actually made up of animatedTransformwidgets
TwinAnimationBuilder: ⏩ to create a custom implicit animation- `
TwinAnimationBuildercan makes use ofTransform.\_\_to create animations
- `
Explicit Animation
- require
AnimationControllerMust be in aStatefull Widget
- Built-in Explicit Animation:
..TransitionlikeSizeTransition,FadeTransition,SlideTransition, etc. - If we want a standalone custom explicit animation, you should ⏩
extendAnimatedWidget AnimatedBuilder: ⏩ for everything else