Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onGenerateRoute: (RouteSettings routeSettings) {
- return MaterialPageRoute<void>(
- settings: routeSettings,
- builder: (BuildContext context) {
- switch (routeSettings.name) {
- case SettingsView.routeName:
- return SettingsView(controller: settingsController);
- case SampleItemDetailsView.routeName:
- return const SampleItemDetailsView();
- case SampleItemListView.routeName:
- default:
- return const SampleItemListView();
- }
- },
- );
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement