animation method

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

Implementation

@override
List<AnimationController> animation() {
  var durations = [720, 1020, 1280, 1420, 1450, 1180, 870, 1450, 1060];

  List<AnimationController> controllers = [];
  for (int i = 0; i < 9; i++) {
    var sizeController = new AnimationController(
        duration: Duration(milliseconds: durations[i]), vsync: context);
    var alphaTween =
        new IntTween(begin: 122, end: 255).animate(sizeController);
    sizeController.addListener(() {
      scaleDoubles[i] = sizeController.value;
      alphaInts[i] = alphaTween.value;
      postInvalidate();
    });
    controllers.add(sizeController);
  }
  return controllers;
}