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.
Dependencies
animated_widgets: ^1.0.6
random_color: ^1.0.5
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
initState()
2. Build custom Widget tree.
3. Provide constructor and add getter, that returns the updated value for that widget.
Other Contributions.,