Skip to content

Instantly share code, notes, and snippets.

@vemarav
Created February 11, 2018 11:35
Show Gist options
  • Select an option

  • Save vemarav/bb0dbfca5b3ff7bf854ddf55d3d210db to your computer and use it in GitHub Desktop.

Select an option

Save vemarav/bb0dbfca5b3ff7bf854ddf55d3d210db 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
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment