Last active
November 13, 2023 17:37
-
-
Save vemarav/d9f665550b339c2e061b4e811ab4c102 to your computer and use it in GitHub Desktop.
Flutter Navigation Fade Transition
This file contains 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
Thanks for this.