Warning:
  When using initialRoute, don’t define a home property.

3. Navigate to the second screen

With the widgets and routes in place, trigger navigation by using the
Navigator.pushNamed() method.
This tells Flutter to build the widget defined in the
routes table and launch the screen.

In the build() method of the FirstScreen widget, update the onPressed()
callback:

4. Return to the first screen

To navigate back to the first screen, use the
Navigator.pop() function.

Interactive example

Navigate to a new screen and back

Pass arguments to a named route