Skip to content

Instantly share code, notes, and snippets.

@vemarav
Last active November 13, 2023 17:37
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemarav/d9f665550b339c2e061b4e811ab4c102 to your computer and use it in GitHub Desktop.
Save vemarav/d9f665550b339c2e061b4e811ab4c102 to your computer and use it in GitHub Desktop.
Flutter Navigation Fade Transition
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
);
}
)
);
@erwinagpasa
Copy link

Nice

@louisoftokyo
Copy link

Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment