Work flow of the Flutter Animation AnimationController(duration: const Duration(seconds: 2), vsync: this); animation = Tween<double>(begin: 0, end: 300). animate(controller); controller. forward(); Add animation based listener, addListener to change the state of the widget.
Read moreWhat is Flutter animation?
In Flutter, the widgets which perform an animation take an animation object as a parameter . This Animation object gives the information from which they read the current value of the animation and to which they listen for changes to that value.
Read more