Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ilikerobots/457075ec9748786d692981766e580530 to your computer and use it in GitHub Desktop.
Save ilikerobots/457075ec9748786d692981766e580530 to your computer and use it in GitHub Desktop.
class _TweenSequenceBoxState extends State<TweenSequenceBox>
with SingleTickerProviderStateMixin {
AnimationController _controller;
Animation<Color> _colorAnim;
@override
void initState() {
super.initState();
_controller = AnimationController(
duration: const Duration(seconds: 5),
vsync: this,
)..forward()..repeat();
_colorAnim = bgColor.animate(_controller);
}
// Our build method will go here
@override
void dispose() { // don't forget to clean up!
_controller.dispose();
super.dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment