animation method
Implementation
@override
List<AnimationController> animation() {
List<AnimationController> controllers = [];
var controller = new AnimationController(
duration: Duration(milliseconds: 325), vsync: context);
var translateTween = new Tween(begin: 0, end: 0.5).animate(controller);
var alphaTween = new IntTween(begin: 255, end: 122).animate(controller);
var rotateTween1 = new Tween(begin: 0.0, end: 45.0).animate(controller);
var rotateTween2 = new Tween(begin: 0.0, end: -45.0).animate(controller);
controller.addListener(() {
translateX = translateTween.value as double;
alpha = alphaTween.value;
degrees1 = rotateTween1.value;
degrees2 = rotateTween2.value;
postInvalidate();
});
controllers.add(controller);
return controllers;
}