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