Skip to content

Instantly share code, notes, and snippets.

@DaniyarGilimov
Created June 22, 2019 09:32
Show Gist options
  • Save DaniyarGilimov/a317c8e59d98c5ccd7cd4a6e17c7ef49 to your computer and use it in GitHub Desktop.
Save DaniyarGilimov/a317c8e59d98c5ccd7cd4a6e17c7ef49 to your computer and use it in GitHub Desktop.
Navigator and MaterialPageRoute
Widget build(BuildContext context) {
return Navigator(
onGenerateRoute: (RouteSettings settings) {
return new MaterialPageRoute(
settings: settings,
builder: (BuildContext context) {
return Scaffold(
//List {Математика, Английский язык...}
);
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment