+
                setState(() {

+
                  _dragAlignment = _animation.value;

+
                });

10

+
              });

6
11

Next, make the Align widget use the _dragAlignment field:

Finally, update the GestureDetector to manage the animation controller:

lib/{step2.dart (gesture) → step3.dart (gesture)}

@@ -1,5 +1,7 @@

1
1

return GestureDetector(

onPanDown: (details) {},

+
              onPanDown: (details) {

+
                _controller.stop();

+
              },

3
5

onPanUpdate: (details) {

4
6