36
36

super.initState();

37
37

controller =

38
38

AnimationController(duration: const Duration(seconds: 2), vsync: this);

39

animation = Tween<double>(begin: 0, end: 300).animate(controller);

39

+
                animation = Tween<double>(begin: 0, end: 300).animate(controller)

40

+
                  ..addStatusListener((status) {

41

+
                    if (status == AnimationStatus.completed) {

42

+
                      controller.reverse();

43