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-09-07 13:34:03 -04:00
|
|
|
import 'package:auto_route/auto_route.dart' as _i8;
|
|
|
|
import 'package:flutter/material.dart' as _i9;
|
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;
|
|
|
|
import '../screens/home/index.dart' as _i6;
|
|
|
|
import '../screens/info/index.dart' as _i5;
|
|
|
|
import '../screens/map/index.dart' as _i3;
|
|
|
|
import '../screens/student_id/index.dart' as _i7;
|
|
|
|
import '../utils/hero_empty_router_page.dart' as _i2;
|
|
|
|
|
|
|
|
class AppRouter extends _i8.RootStackRouter {
|
|
|
|
AppRouter([_i9.GlobalKey<_i9.NavigatorState>? navigatorKey])
|
2022-09-03 14:46:00 -04:00
|
|
|
: super(navigatorKey);
|
|
|
|
|
|
|
|
@override
|
2022-09-07 13:34:03 -04:00
|
|
|
final Map<String, _i8.PageFactory> pagesMap = {
|
2022-09-03 14:46:00 -04:00
|
|
|
MainLayout.name: (routeData) {
|
2022-09-07 13:34:03 -04:00
|
|
|
return _i8.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) {
|
|
|
|
return _i8.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i2.HeroEmptyRouterPage());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
|
|
|
MapRoute.name: (routeData) {
|
2022-09-07 13:34:03 -04:00
|
|
|
return _i8.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i3.MapScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
|
|
|
EventsRoute.name: (routeData) {
|
2022-09-07 13:34:03 -04:00
|
|
|
return _i8.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i4.EventsScreen());
|
2022-09-03 14:46:00 -04:00
|
|
|
},
|
|
|
|
InfoRoute.name: (routeData) {
|
2022-09-07 13:34:03 -04:00
|
|
|
return _i8.MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const _i5.InfoScreen());
|
|
|
|
},
|
|
|
|
HomeRoute.name: (routeData) {
|
|
|
|
return _i8.CustomPage<dynamic>(
|
|
|
|
routeData: routeData,
|
|
|
|
child: const _i6.HomeScreen(),
|
|
|
|
transitionsBuilder: _i8.TransitionsBuilders.noTransition,
|
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
|
|
|
},
|
|
|
|
StudentIdRoute.name: (routeData) {
|
|
|
|
return _i8.CustomPage<dynamic>(
|
|
|
|
routeData: routeData,
|
|
|
|
child: const _i7.StudentIdScreen(),
|
|
|
|
transitionsBuilder: _i8.TransitionsBuilders.noTransition,
|
|
|
|
opaque: true,
|
|
|
|
barrierDismissible: false);
|
2022-09-03 14:46:00 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
@override
|
2022-09-07 13:34:03 -04:00
|
|
|
List<_i8.RouteConfig> get routes => [
|
|
|
|
_i8.RouteConfig(MainLayout.name, path: '/', children: [
|
|
|
|
_i8.RouteConfig(HomePageRouter.name,
|
|
|
|
path: 'home',
|
|
|
|
parent: MainLayout.name,
|
|
|
|
children: [
|
|
|
|
_i8.RouteConfig(HomeRoute.name,
|
|
|
|
path: '', parent: HomePageRouter.name),
|
|
|
|
_i8.RouteConfig(StudentIdRoute.name,
|
|
|
|
path: 'student-id', parent: HomePageRouter.name)
|
|
|
|
]),
|
|
|
|
_i8.RouteConfig(MapRoute.name, path: 'map', parent: MainLayout.name),
|
|
|
|
_i8.RouteConfig(EventsRoute.name,
|
2022-09-03 14:46:00 -04:00
|
|
|
path: 'events', parent: MainLayout.name),
|
2022-09-07 13:34:03 -04:00
|
|
|
_i8.RouteConfig(InfoRoute.name, path: 'info', parent: MainLayout.name)
|
|
|
|
])
|
2022-09-03 14:46:00 -04:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i1.MainLayout]
|
2022-09-07 13:34:03 -04:00
|
|
|
class MainLayout extends _i8.PageRouteInfo<void> {
|
|
|
|
const MainLayout({List<_i8.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-07 13:34:03 -04:00
|
|
|
/// [_i2.HeroEmptyRouterPage]
|
|
|
|
class HomePageRouter extends _i8.PageRouteInfo<void> {
|
|
|
|
const HomePageRouter({List<_i8.PageRouteInfo>? children})
|
|
|
|
: 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]
|
|
|
|
class MapRoute extends _i8.PageRouteInfo<void> {
|
2022-09-03 14:46:00 -04:00
|
|
|
const MapRoute() : super(MapRoute.name, path: 'map');
|
|
|
|
|
|
|
|
static const String name = 'MapRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
2022-09-07 13:34:03 -04:00
|
|
|
/// [_i4.EventsScreen]
|
|
|
|
class EventsRoute extends _i8.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-09-07 13:34:03 -04:00
|
|
|
/// [_i5.InfoScreen]
|
|
|
|
class InfoRoute extends _i8.PageRouteInfo<void> {
|
2022-09-03 14:46:00 -04:00
|
|
|
const InfoRoute() : super(InfoRoute.name, path: 'info');
|
|
|
|
|
|
|
|
static const String name = 'InfoRoute';
|
|
|
|
}
|
2022-09-07 13:34:03 -04:00
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i6.HomeScreen]
|
|
|
|
class HomeRoute extends _i8.PageRouteInfo<void> {
|
|
|
|
const HomeRoute() : super(HomeRoute.name, path: '');
|
|
|
|
|
|
|
|
static const String name = 'HomeRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [_i7.StudentIdScreen]
|
|
|
|
class StudentIdRoute extends _i8.PageRouteInfo<void> {
|
|
|
|
const StudentIdRoute() : super(StudentIdRoute.name, path: 'student-id');
|
|
|
|
|
|
|
|
static const String name = 'StudentIdRoute';
|
|
|
|
}
|