Last active
June 5, 2020 11:20
-
-
Save SahanAmarsha/b3ae1b7e1abe772ad0c8bcf06f322d7b to your computer and use it in GitHub Desktop.
How to define a fade animation in your Flutter app
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
AnimationController _controller; | |
Animation _myAnimation; | |
void initState() { | |
// TODO: implement initState | |
super.initState(); | |
_controller = AnimationController( | |
vsync: this, | |
duration: Duration(milliseconds: 1200), | |
); | |
_myAnimation = CurvedAnimation(parent: _controller, curve: Curves.easeIn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment