Created
May 26, 2019 18:54
-
-
Save deven98/6028788a54067ed88a90a7804dc76cfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnimationController controller; | |
Animation colorAnimation; | |
Animation sizeAnimation; | |
@override | |
void initState() { | |
super.initState(); | |
controller = AnimationController(vsync: this, duration: Duration(seconds: 2)); | |
colorAnimation = ColorTween(begin: Colors.blue, end: Colors.yellow).animate(controller); | |
sizeAnimation = Tween<double>(begin: 100.0, end: 200.0).animate(controller); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment