material-components / material-components-flutter-codelabs

Codelabs for Material Components for Flutter
212 stars 244 forks source link

When using initialRoute, don’t define a home property. #264

Closed asavchuk closed 2 years ago

asavchuk commented 2 years ago

In the codelab the MaterialApp uses both home and initialRoute properties.

return MaterialApp(
      home: const HomePage(),
      initialRoute: '/login',
      onGenerateRoute: _getRoute,
);

How does it relates to the cookbook's warning: When using initialRoute, don’t define a home property. https://flutter.dev/docs/cookbook/navigation/named-routes

guidezpl commented 2 years ago

Thanks for filing, this has been fixed and will be published shortly