A Tween describes the interpolation between a
beginning and ending value or the mapping from an input
range to an output range. To use a Tween object
with an animation, call the Tween object’s animate()
method and pass it the Animation object that you want to modify.

For this example, a FadeTransition
widget is used and the opacity property is
mapped to the animation object.

To start the animation, use controller.forward().
Other operations can also be performed using the
controller such as fling() or repeat().
For this example, the FlutterLogo
widget is used inside the FadeTransition widget.

How do I add swipe animation to cards?

In React Native, either the PanResponder or
third-party libraries are used for swipe animation.

In Flutter, to add a swipe animation, use the
Dismissible widget and nest the child widgets.

React Native and Flutter widget equivalent components