animation method
Implementation
@override
List<AnimationController> animation() {
List<AnimationController> controllers = [];
for (int i = 0; i < 3; i++) {
var sizeController = new AnimationController(
duration: const Duration(milliseconds: 1000), vsync: context);
var alphaTween = new IntTween(begin: 255, end: 0).animate(sizeController);
sizeController.addListener(() {
scaleDoubles[i] = sizeController.value;
alphaInts[i] = alphaTween.value;
postInvalidate();
});
controllers.add(sizeController);
}
return controllers;
}