// ************************************************************************** // AutoRouteGenerator // ************************************************************************** // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** // AutoRouteGenerator // ************************************************************************** // // ignore_for_file: type=lint // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:auto_route/auto_route.dart' as _i10; import 'package:flutter/material.dart' as _i11; import '../layouts/main/index.dart' as _i1; import '../screens/events/index.dart' as _i4; import '../screens/home/home_header.dart' as _i6; import '../screens/home/index.dart' as _i2; import '../screens/info/index.dart' as _i5; import '../screens/map/index.dart' as _i3; import '../screens/map/map_category.dart' as _i9; import '../screens/map/map_home.dart' as _i8; import '../screens/map/state.dart' as _i13; import '../screens/student_id/index.dart' as _i7; import 'index.dart' as _i12; class AppRouter extends _i10.RootStackRouter { AppRouter([_i11.GlobalKey<_i11.NavigatorState>? navigatorKey]) : super(navigatorKey); @override final Map pagesMap = { MainLayout.name: (routeData) { return _i10.MaterialPageX( routeData: routeData, child: const _i1.MainLayout()); }, HomePageRouter.name: (routeData) { return _i10.MaterialPageX( routeData: routeData, child: const _i2.HomeScreen()); }, MapRoute.name: (routeData) { return _i10.MaterialPageX( routeData: routeData, child: const _i3.MapScreen()); }, EventsRoute.name: (routeData) { return _i10.MaterialPageX( routeData: routeData, child: const _i4.EventsScreen()); }, InfoRoute.name: (routeData) { return _i10.MaterialPageX( routeData: routeData, child: const _i5.InfoScreen()); }, HomeRoute.name: (routeData) { return _i10.CustomPage( routeData: routeData, child: const _i6.HomePageHeader(), transitionsBuilder: _i10.TransitionsBuilders.fadeIn, opaque: true, barrierDismissible: false); }, StudentIdRoute.name: (routeData) { return _i10.CustomPage( routeData: routeData, child: const _i7.StudentIdScreen(), transitionsBuilder: _i10.TransitionsBuilders.fadeIn, opaque: true, barrierDismissible: false); }, MapHomeRoute.name: (routeData) { return _i10.CustomPage( routeData: routeData, child: const _i8.MapHomeScreen(), customRouteBuilder: _i12.mapRouteBuilder, opaque: true, barrierDismissible: false); }, MapCategoryRoute.name: (routeData) { final args = routeData.argsAs(); return _i10.CustomPage( routeData: routeData, child: _i9.MapCategoryScreen(category: args.category, key: args.key), customRouteBuilder: _i12.mapRouteBuilder, opaque: true, barrierDismissible: false); } }; @override List<_i10.RouteConfig> get routes => [ _i10.RouteConfig(MainLayout.name, path: '/', children: [ _i10.RouteConfig(HomePageRouter.name, path: 'home', parent: MainLayout.name, children: [ _i10.RouteConfig(HomeRoute.name, path: '', parent: HomePageRouter.name), _i10.RouteConfig(StudentIdRoute.name, path: 'student-id', parent: HomePageRouter.name) ]), _i10.RouteConfig(MapRoute.name, path: 'map', parent: MainLayout.name, children: [ _i10.RouteConfig(MapHomeRoute.name, path: '', parent: MapRoute.name), _i10.RouteConfig(MapCategoryRoute.name, path: 'category/:id', parent: MapRoute.name) ]), _i10.RouteConfig(EventsRoute.name, path: 'events', parent: MainLayout.name), _i10.RouteConfig(InfoRoute.name, path: 'info', parent: MainLayout.name) ]) ]; } /// generated route for /// [_i1.MainLayout] class MainLayout extends _i10.PageRouteInfo { const MainLayout({List<_i10.PageRouteInfo>? children}) : super(MainLayout.name, path: '/', initialChildren: children); static const String name = 'MainLayout'; } /// generated route for /// [_i2.HomeScreen] class HomePageRouter extends _i10.PageRouteInfo { const HomePageRouter({List<_i10.PageRouteInfo>? children}) : super(HomePageRouter.name, path: 'home', initialChildren: children); static const String name = 'HomePageRouter'; } /// generated route for /// [_i3.MapScreen] class MapRoute extends _i10.PageRouteInfo { const MapRoute({List<_i10.PageRouteInfo>? children}) : super(MapRoute.name, path: 'map', initialChildren: children); static const String name = 'MapRoute'; } /// generated route for /// [_i4.EventsScreen] class EventsRoute extends _i10.PageRouteInfo { const EventsRoute() : super(EventsRoute.name, path: 'events'); static const String name = 'EventsRoute'; } /// generated route for /// [_i5.InfoScreen] class InfoRoute extends _i10.PageRouteInfo { const InfoRoute() : super(InfoRoute.name, path: 'info'); static const String name = 'InfoRoute'; } /// generated route for /// [_i6.HomePageHeader] class HomeRoute extends _i10.PageRouteInfo { const HomeRoute() : super(HomeRoute.name, path: ''); static const String name = 'HomeRoute'; } /// generated route for /// [_i7.StudentIdScreen] class StudentIdRoute extends _i10.PageRouteInfo { const StudentIdRoute() : super(StudentIdRoute.name, path: 'student-id'); static const String name = 'StudentIdRoute'; } /// generated route for /// [_i8.MapHomeScreen] class MapHomeRoute extends _i10.PageRouteInfo { const MapHomeRoute() : super(MapHomeRoute.name, path: ''); static const String name = 'MapHomeRoute'; } /// generated route for /// [_i9.MapCategoryScreen] class MapCategoryRoute extends _i10.PageRouteInfo { MapCategoryRoute({required _i13.MapCategory category, _i11.Key? key}) : super(MapCategoryRoute.name, path: 'category/:id', args: MapCategoryRouteArgs(category: category, key: key)); static const String name = 'MapCategoryRoute'; } class MapCategoryRouteArgs { const MapCategoryRouteArgs({required this.category, this.key}); final _i13.MapCategory category; final _i11.Key? key; @override String toString() { return 'MapCategoryRouteArgs{category: $category, key: $key}'; } }