Skip to content

Instantly share code, notes, and snippets.

@deven98
Created May 26, 2019 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deven98/6028788a54067ed88a90a7804dc76cfe to your computer and use it in GitHub Desktop.
Save deven98/6028788a54067ed88a90a7804dc76cfe to your computer and use it in GitHub Desktop.
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