AnimatedWidget — Flutter
To make your widget animated, AnimatedWidget is what all you need.
Using this AnimatedWidget we can create our own custom animations. Unlike other widgets in Flutter, AnimatedWidget is a abstract class that need to be extended in our custom class.
There are three main steps that need to be done for animating our widgets using this AnimateWidget class.
- Create an animation controller and initialize it within the
2. Build custom Widget tree.
3. Provide constructor and add getter, that returns the updated value for that widget.
Get the Complete Code here -> Source Code
The video tutorial for the above, check this👇out.,