animation method

  1. @override
List<AnimationController> animation()
override

Implementation

@override
List<AnimationController> animation() {
  List<AnimationController> controllers = [];

  for (var i = 0; i < 3; i++) {
    AnimationController sizeController = new AnimationController(
        duration: const Duration(milliseconds: 750), vsync: context);
    var delayedAnimation =
        Tween(begin: 0.3, end: 1.0).animate(sizeController);
    delayedAnimation.addListener(() {
      scaleDoubles[i] = delayedAnimation.value;
      postInvalidate();
    });
    // size.
    controllers.add(sizeController);
  }
  return controllers;
}