Created
February 11, 2018 11:35
-
-
Save vemarav/bb0dbfca5b3ff7bf854ddf55d3d210db to your computer and use it in GitHub Desktop.
Flutter Navigation Fade Transition
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
| Navigator.of(context).push( | |
| new PageRouteBuilder( | |
| pageBuilder: (BuildContext context, _, __) { | |
| return new Notes(); | |
| }, | |
| transitionsBuilder: (_, Animation<double> animation, __, Widget child) { | |
| return new FadeTransition( | |
| opacity: animation, | |
| child: child | |
| ); | |
| } | |
| ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment