@override

Widget

build

BuildContext

context

return

MaterialApp

routes:

'/'

context

HomeScreen

(),

'/details'

context

DetailScreen

(),

},

);

Routes specified here are called named routes. For a complete example, follow
the Navigate with named routes recipe from the Flutter Cookbook.

Limitations

Although named routes can handle deep links, the behavior is always the same and
can’t be customized. When a new deep link is received by the platform, Flutter
pushes a new Route onto the Navigator regardless where the user currently is.