2022-09-03 14:46:00 -04:00
|
|
|
// **************************************************************************
|
|
|
|
// AutoRouteGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// AutoRouteGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
//
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
2022-11-18 15:56:37 -05:00
|
|
|
import 'package:auto_route/auto_route.dart' as _i15;
|
|
|
|
import 'package:flutter/material.dart' as _i16;
|
2022-09-03 14:46:00 -04:00
|
|
|
|
|
|
|
import '../layouts/main/index.dart' as _i1;
|
2022-09-07 13:34:03 -04:00
|
|
|
import '../screens/events/index.dart' as _i4;
|
2022-09-11 12:39:48 -04:00
|
|
|
import '../screens/home/home_header.dart' as _i6;
|
|
|
|
import '../screens/home/index.dart' as _i2;
|
2022-11-18 15:56:37 -05:00
|
|
|
import '../screens/info/contacts.dart' as _i12;
|
|
|
|
import '../screens/info/health_safety.dart' as _i11;
|
|
|
|
import '../screens/info/hours.dart' as _i13;
|
|
|
|
import '../screens/info/index.dart' as _i10;
|
2022-09-07 13:34:03 -04:00
|
|
|
import '../screens/map/index.dart' as _i3;
|
2022-09-12 15:24:14 -04:00
|
|
|
import '../screens/map/map_category.dart' as _i9;
|
|
|
|
import '../screens/map/map_home.dart' as _i8;
|
2022-11-18 15:56:37 -05:00
|
|
|
import '../screens/map/state.dart' as _i18;
|
|
|
|
import '../screens/settings/settings.dart' as _i14;
|
2022-09-07 13:34:03 -04:00
|
|
|
import '../screens/student_id/index.dart' as _i7;
|
2022-11-18 15:56:37 -05:00
|
|
|
import '../utils/hero_empty_router_page.dart' as _i5;
|
|
|
|
import 'index.dart' as _i17;
|
2022-09-07 13:34:03 -04:00
|
|
|
|
2022-11-18 15:56:37 -05:00
|
|
|
class AppRouter extends _i15.RootStackRouter {
|
|
|
|
AppRouter([_i16.GlobalKey<_i16.NavigatorState>? navigatorKey])
|
2022-09-03 14:46:00 -04:00
|
|
|
: super(navigatorKey);
|
|
|
|
|
|
|
|
@override
|
2022-11-18 15:56:37 -05:00
|
|
|
final Map<String, _i15.PageFactory> pagesMap = {
|
2022-09-03 14:46:00 -04:00
|
|
|
MainLayout.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.MaterialPageX<dynamic>(
|
2022-09-03 14:46:00 -04:00
|
|
|
routeData: routeData, child: const _i1.MainLayout());
|
|
|
|
},
|
2022-09-07 13:34:03 -04:00
|
|
|
HomePageRouter.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.MaterialPageX<dynamic>(
|
2022-09-11 12:39:48 -04:00
|
|
|
routeData: routeData, child: const _i2.HomeScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
|
|
|
MapRoute.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.MaterialPageX<dynamic>(
|
2022-09-07 13:34:03 -04:00
|
|
|
routeData: routeData, child: const _i3.MapScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
|
|
|
EventsRoute.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.MaterialPageX<dynamic>(
|
2022-09-07 13:34:03 -04:00
|
|
|
routeData: routeData, child: const _i4.EventsScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
2022-11-18 15:56:37 -05:00
|
|
|
InfoPageRouter.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i5.HeroEmptyRouterPage());
|
2022-09-07 13:34:03 -04:00
|
|
|
},
|
|
|
|
HomeRoute.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.CustomPage<dynamic>(
|
2022-09-07 13:34:03 -04:00
|
|
|
routeData: routeData,
|
2022-09-11 12:39:48 -04:00
|
|
|
child: const _i6.HomePageHeader(),
|
2022-11-18 15:56:37 -05:00
|
|
|
transitionsBuilder: _i15.TransitionsBuilders.fadeIn,
|
2022-09-07 13:34:03 -04:00
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
|
|
|
},
|
|
|
|
StudentIdRoute.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.CustomPage<dynamic>(
|
2022-09-07 13:34:03 -04:00
|
|
|
routeData: routeData,
|
|
|
|
child: const _i7.StudentIdScreen(),
|
2022-11-18 15:56:37 -05:00
|
|
|
transitionsBuilder: _i15.TransitionsBuilders.fadeIn,
|
2022-09-12 15:24:14 -04:00
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
|
|
|
},
|
|
|
|
MapHomeRoute.name: (routeData) {
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.CustomPage<dynamic>(
|
2022-09-12 15:24:14 -04:00
|
|
|
routeData: routeData,
|
|
|
|
child: const _i8.MapHomeScreen(),
|
2022-11-18 15:56:37 -05:00
|
|
|
customRouteBuilder: _i17.mapRouteBuilder,
|
2022-09-12 15:24:14 -04:00
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
|
|
|
},
|
|
|
|
MapCategoryRoute.name: (routeData) {
|
|
|
|
final args = routeData.argsAs<MapCategoryRouteArgs>();
|
2022-11-18 15:56:37 -05:00
|
|
|
return _i15.CustomPage<dynamic>(
|
2022-09-12 15:24:14 -04:00
|
|
|
routeData: routeData,
|
|
|
|
child: _i9.MapCategoryScreen(category: args.category, key: args.key),
|
2022-11-18 15:56:37 -05:00
|
|
|
customRouteBuilder: _i17.mapRouteBuilder,
|
2022-09-07 13:34:03 -04:00
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
2022-11-18 15:56:37 -05:00
|
|
|
},
|
|
|
|
InfoRoute.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i10.InfoScreen());
|
|
|
|
},
|
|
|
|
HealthSafetyRoute.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i11.HealthSafetyScreen());
|
|
|
|
},
|
|
|
|
ContactsRoute.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i12.ContactsScreen());
|
|
|
|
},
|
|
|
|
HoursRoute.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i13.HoursScreen());
|
|
|
|
},
|
|
|
|
SettingsRoute.name: (routeData) {
|
|
|
|
return _i15.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i14.SettingsScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
@override
|
2022-11-18 15:56:37 -05:00
|
|
|
List<_i15.RouteConfig> get routes => [
|
|
|
|
_i15.RouteConfig(MainLayout.name, path: '/', children: [
|
|
|
|
_i15.RouteConfig(HomePageRouter.name,
|
2022-09-07 13:34:03 -04:00
|
|
|
path: 'home',
|
|
|
|
parent: MainLayout.name,
|
|
|
|
children: [
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(HomeRoute.name,
|
2022-09-07 13:34:03 -04:00
|
|
|
path: '', parent: HomePageRouter.name),
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(StudentIdRoute.name,
|
2022-09-07 13:34:03 -04:00
|
|
|
path: 'student-id', parent: HomePageRouter.name)
|
|
|
|
]),
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(MapRoute.name,
|
2022-09-12 15:24:14 -04:00
|
|
|
path: 'map',
|
|
|
|
parent: MainLayout.name,
|
|
|
|
children: [
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(MapHomeRoute.name,
|
2022-09-12 15:24:14 -04:00
|
|
|
path: '', parent: MapRoute.name),
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(MapCategoryRoute.name,
|
2022-09-12 15:24:14 -04:00
|
|
|
path: 'category/:id', parent: MapRoute.name)
|
|
|
|
]),
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(EventsRoute.name,
|
2022-09-03 14:46:00 -04:00
|
|
|
path: 'events', parent: MainLayout.name),
|
2022-11-18 15:56:37 -05:00
|
|
|
_i15.RouteConfig(InfoPageRouter.name,
|
|
|
|
path: 'info',
|
|
|
|
parent: MainLayout.name,
|
|
|
|
children: [
|
|
|
|
_i15.RouteConfig(InfoRoute.name,
|
|
|
|
path: '', parent: InfoPageRouter.name),
|
|
|
|
_i15.RouteConfig(HealthSafetyRoute.name,
|
|
|
|
path: 'health-and-safety', parent: InfoPageRouter.name),
|
|
|
|
_i15.RouteConfig(ContactsRoute.name,
|
|
|
|
path: 'contacts', parent: InfoPageRouter.name),
|
|
|
|
_i15.RouteConfig(HoursRoute.name,
|
|
|
|
path: 'hours', parent: InfoPageRouter.name),
|
|
|
|
_i15.RouteConfig(SettingsRoute.name,
|
|
|
|
path: 'settings', parent: InfoPageRouter.name)
|
|
|
|
])
|
2022-09-07 13:34:03 -04:00
|
|
|
])
|
2022-09-03 14:46:00 -04:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i1.MainLayout]
|
2022-11-18 15:56:37 -05:00
|
|
|
class MainLayout extends _i15.PageRouteInfo<void> {
|
|
|
|
const MainLayout({List<_i15.PageRouteInfo>? children})
|
2022-09-03 14:46:00 -04:00
|
|
|
: super(MainLayout.name, path: '/', initialChildren: children);
|
|
|
|
|
|
|
|
static const String name = 'MainLayout';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
2022-09-11 12:39:48 -04:00
|
|
|
/// [_i2.HomeScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class HomePageRouter extends _i15.PageRouteInfo<void> {
|
|
|
|
const HomePageRouter({List<_i15.PageRouteInfo>? children})
|
2022-09-07 13:34:03 -04:00
|
|
|
: super(HomePageRouter.name, path: 'home', initialChildren: children);
|
2022-09-03 18:05:53 -04:00
|
|
|
|
2022-09-07 13:34:03 -04:00
|
|
|
static const String name = 'HomePageRouter';
|
2022-09-03 14:46:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
2022-09-07 13:34:03 -04:00
|
|
|
/// [_i3.MapScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class MapRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const MapRoute({List<_i15.PageRouteInfo>? children})
|
2022-09-12 15:24:14 -04:00
|
|
|
: super(MapRoute.name, path: 'map', initialChildren: children);
|
2022-09-03 14:46:00 -04:00
|
|
|
|
|
|
|
static const String name = 'MapRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
2022-09-07 13:34:03 -04:00
|
|
|
/// [_i4.EventsScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class EventsRoute extends _i15.PageRouteInfo<void> {
|
2022-09-03 14:46:00 -04:00
|
|
|
const EventsRoute() : super(EventsRoute.name, path: 'events');
|
|
|
|
|
|
|
|
static const String name = 'EventsRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
2022-11-18 15:56:37 -05:00
|
|
|
/// [_i5.HeroEmptyRouterPage]
|
|
|
|
class InfoPageRouter extends _i15.PageRouteInfo<void> {
|
|
|
|
const InfoPageRouter({List<_i15.PageRouteInfo>? children})
|
|
|
|
: super(InfoPageRouter.name, path: 'info', initialChildren: children);
|
2022-09-03 14:46:00 -04:00
|
|
|
|
2022-11-18 15:56:37 -05:00
|
|
|
static const String name = 'InfoPageRouter';
|
2022-09-03 14:46:00 -04:00
|
|
|
}
|
2022-09-07 13:34:03 -04:00
|
|
|
|
|
|
|
/// generated route for
|
2022-09-11 12:39:48 -04:00
|
|
|
/// [_i6.HomePageHeader]
|
2022-11-18 15:56:37 -05:00
|
|
|
class HomeRoute extends _i15.PageRouteInfo<void> {
|
2022-09-07 13:34:03 -04:00
|
|
|
const HomeRoute() : super(HomeRoute.name, path: '');
|
|
|
|
|
|
|
|
static const String name = 'HomeRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i7.StudentIdScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class StudentIdRoute extends _i15.PageRouteInfo<void> {
|
2022-09-07 13:34:03 -04:00
|
|
|
const StudentIdRoute() : super(StudentIdRoute.name, path: 'student-id');
|
|
|
|
|
|
|
|
static const String name = 'StudentIdRoute';
|
|
|
|
}
|
2022-09-12 15:24:14 -04:00
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i8.MapHomeScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class MapHomeRoute extends _i15.PageRouteInfo<void> {
|
2022-09-12 15:24:14 -04:00
|
|
|
const MapHomeRoute() : super(MapHomeRoute.name, path: '');
|
|
|
|
|
|
|
|
static const String name = 'MapHomeRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i9.MapCategoryScreen]
|
2022-11-18 15:56:37 -05:00
|
|
|
class MapCategoryRoute extends _i15.PageRouteInfo<MapCategoryRouteArgs> {
|
|
|
|
MapCategoryRoute({required _i18.MapCategory category, _i16.Key? key})
|
2022-09-12 15:24:14 -04:00
|
|
|
: 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});
|
|
|
|
|
2022-11-18 15:56:37 -05:00
|
|
|
final _i18.MapCategory category;
|
2022-09-12 15:24:14 -04:00
|
|
|
|
2022-11-18 15:56:37 -05:00
|
|
|
final _i16.Key? key;
|
2022-09-12 15:24:14 -04:00
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
return 'MapCategoryRouteArgs{category: $category, key: $key}';
|
|
|
|
}
|
|
|
|
}
|
2022-11-18 15:56:37 -05:00
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i10.InfoScreen]
|
|
|
|
class InfoRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const InfoRoute() : super(InfoRoute.name, path: '');
|
|
|
|
|
|
|
|
static const String name = 'InfoRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i11.HealthSafetyScreen]
|
|
|
|
class HealthSafetyRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const HealthSafetyRoute()
|
|
|
|
: super(HealthSafetyRoute.name, path: 'health-and-safety');
|
|
|
|
|
|
|
|
static const String name = 'HealthSafetyRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i12.ContactsScreen]
|
|
|
|
class ContactsRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const ContactsRoute() : super(ContactsRoute.name, path: 'contacts');
|
|
|
|
|
|
|
|
static const String name = 'ContactsRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i13.HoursScreen]
|
|
|
|
class HoursRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const HoursRoute() : super(HoursRoute.name, path: 'hours');
|
|
|
|
|
|
|
|
static const String name = 'HoursRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i14.SettingsScreen]
|
|
|
|
class SettingsRoute extends _i15.PageRouteInfo<void> {
|
|
|
|
const SettingsRoute() : super(SettingsRoute.name, path: 'settings');
|
|
|
|
|
|
|
|
static const String name = 'SettingsRoute';
|
|
|
|
}
|