Created
May 22, 2020 11:03
-
-
Save ilikerobots/457075ec9748786d692981766e580530 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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