Skip to content

Instantly share code, notes, and snippets.

@slamdon
Created February 11, 2020 12:44
Show Gist options
  • Save slamdon/c3d7949a83abb0bbc283becb6c456fec to your computer and use it in GitHub Desktop.
Save slamdon/c3d7949a83abb0bbc283becb6c456fec to your computer and use it in GitHub Desktop.
Animation
AnimationController animationController;
Animation<double> animation;
@override
void initState() {
super.initState();
_setupAnimation();
}
_setupAnimation() {
animationController =
AnimationController(vsync: this, duration: Duration(seconds: 1));
animation = Tween(begin: 50.0, end: 150.0).animate(animationController);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment