animation method
Implementation
@override
List<AnimationController> animation() {
List<AnimationController> controllers = [];
for (int i = 0; i < 5; i++) {
var sizeController = new AnimationController(
duration: Duration(milliseconds: 500), vsync: context);
var alphaTween = new Tween(begin: 1.0, end: 0.4).animate(sizeController);
sizeController.addListener(() {
scaleYDoubles[i] = alphaTween.value;
postInvalidate();
});
controllers.add(sizeController);
}
return controllers;
}