Move the widget using gestures

Animate the widget

Calculate the velocity to simulate a springing motion

Step 1: Set up an animation controller

Start with a stateful widget called DraggableCard:

SingleTickerProviderStateMixin.
Then construct an

AnimationController in

TickerProvider.

lib/{starter.dart → step1.dart}

@@ -29,14 +29,20 @@

29
29

State<DraggableCard> createState() => _DraggableCardState();

30
30

31

class _DraggableCardState extends State<DraggableCard> {

31

+
            class _DraggableCardState extends State<DraggableCard>

32