Widget home

The widget for the default route of the app (Navigator.defaultRouteName, which is /).

This is the route that is displayed first when the application is started normally, unless initialRoute is specified. It's also the route that's displayed if the initialRoute can't be displayed.

To be able to directly call Theme.of, MediaQuery.of, etc, in the code that sets the home argument in the constructor, you can use a Builder widget to get a BuildContext.

If home is specified, then routes must not include an entry for /, as home takes its place.


final Widget home