2022-02-03 18:06:44 +02:00
|
|
|
// **************************************************************************
|
|
|
|
// AutoRouteGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// AutoRouteGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
//
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
|
|
|
|
part of 'router.dart';
|
|
|
|
|
|
|
|
class _$AppRouter extends RootStackRouter {
|
|
|
|
_$AppRouter(
|
|
|
|
{GlobalKey<NavigatorState>? navigatorKey, required this.authGuard})
|
|
|
|
: super(navigatorKey);
|
|
|
|
|
|
|
|
final AuthGuard authGuard;
|
|
|
|
|
|
|
|
@override
|
|
|
|
final Map<String, PageFactory> pagesMap = {
|
|
|
|
LoginRoute.name: (routeData) {
|
|
|
|
return MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const LoginPage());
|
|
|
|
},
|
|
|
|
HomeRoute.name: (routeData) {
|
|
|
|
return MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const HomePage());
|
|
|
|
},
|
|
|
|
BackupControllerRoute.name: (routeData) {
|
|
|
|
return MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData, child: const BackupControllerPage());
|
|
|
|
},
|
|
|
|
ImageViewerRoute.name: (routeData) {
|
|
|
|
final args = routeData.argsAs<ImageViewerRouteArgs>();
|
|
|
|
return MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData,
|
|
|
|
child: ImageViewerPage(
|
|
|
|
key: args.key,
|
|
|
|
imageUrl: args.imageUrl,
|
|
|
|
heroTag: args.heroTag,
|
2022-02-11 04:40:11 +02:00
|
|
|
thumbnailUrl: args.thumbnailUrl,
|
|
|
|
asset: args.asset));
|
2022-02-06 08:07:56 +02:00
|
|
|
},
|
|
|
|
VideoViewerRoute.name: (routeData) {
|
|
|
|
final args = routeData.argsAs<VideoViewerRouteArgs>();
|
|
|
|
return MaterialPageX<dynamic>(
|
|
|
|
routeData: routeData,
|
|
|
|
child: VideoViewerPage(key: args.key, videoUrl: args.videoUrl));
|
2022-02-03 18:06:44 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<RouteConfig> get routes => [
|
|
|
|
RouteConfig(LoginRoute.name, path: '/'),
|
|
|
|
RouteConfig(HomeRoute.name, path: '/home-page', guards: [authGuard]),
|
|
|
|
RouteConfig(BackupControllerRoute.name,
|
|
|
|
path: '/backup-controller-page', guards: [authGuard]),
|
|
|
|
RouteConfig(ImageViewerRoute.name,
|
2022-02-06 08:07:56 +02:00
|
|
|
path: '/image-viewer-page', guards: [authGuard]),
|
|
|
|
RouteConfig(VideoViewerRoute.name,
|
|
|
|
path: '/video-viewer-page', guards: [authGuard])
|
2022-02-03 18:06:44 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [LoginPage]
|
|
|
|
class LoginRoute extends PageRouteInfo<void> {
|
|
|
|
const LoginRoute() : super(LoginRoute.name, path: '/');
|
|
|
|
|
|
|
|
static const String name = 'LoginRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [HomePage]
|
|
|
|
class HomeRoute extends PageRouteInfo<void> {
|
|
|
|
const HomeRoute() : super(HomeRoute.name, path: '/home-page');
|
|
|
|
|
|
|
|
static const String name = 'HomeRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [BackupControllerPage]
|
|
|
|
class BackupControllerRoute extends PageRouteInfo<void> {
|
|
|
|
const BackupControllerRoute()
|
|
|
|
: super(BackupControllerRoute.name, path: '/backup-controller-page');
|
|
|
|
|
|
|
|
static const String name = 'BackupControllerRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [ImageViewerPage]
|
|
|
|
class ImageViewerRoute extends PageRouteInfo<ImageViewerRouteArgs> {
|
|
|
|
ImageViewerRoute(
|
|
|
|
{Key? key,
|
|
|
|
required String imageUrl,
|
|
|
|
required String heroTag,
|
2022-02-11 04:40:11 +02:00
|
|
|
required String thumbnailUrl,
|
|
|
|
required ImmichAsset asset})
|
2022-02-03 18:06:44 +02:00
|
|
|
: super(ImageViewerRoute.name,
|
|
|
|
path: '/image-viewer-page',
|
|
|
|
args: ImageViewerRouteArgs(
|
|
|
|
key: key,
|
|
|
|
imageUrl: imageUrl,
|
|
|
|
heroTag: heroTag,
|
2022-02-11 04:40:11 +02:00
|
|
|
thumbnailUrl: thumbnailUrl,
|
|
|
|
asset: asset));
|
2022-02-03 18:06:44 +02:00
|
|
|
|
|
|
|
static const String name = 'ImageViewerRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
class ImageViewerRouteArgs {
|
|
|
|
const ImageViewerRouteArgs(
|
|
|
|
{this.key,
|
|
|
|
required this.imageUrl,
|
|
|
|
required this.heroTag,
|
2022-02-11 04:40:11 +02:00
|
|
|
required this.thumbnailUrl,
|
|
|
|
required this.asset});
|
2022-02-03 18:06:44 +02:00
|
|
|
|
|
|
|
final Key? key;
|
|
|
|
|
|
|
|
final String imageUrl;
|
|
|
|
|
|
|
|
final String heroTag;
|
|
|
|
|
|
|
|
final String thumbnailUrl;
|
|
|
|
|
2022-02-11 04:40:11 +02:00
|
|
|
final ImmichAsset asset;
|
|
|
|
|
2022-02-03 18:06:44 +02:00
|
|
|
@override
|
|
|
|
String toString() {
|
2022-02-11 04:40:11 +02:00
|
|
|
return 'ImageViewerRouteArgs{key: $key, imageUrl: $imageUrl, heroTag: $heroTag, thumbnailUrl: $thumbnailUrl, asset: $asset}';
|
2022-02-03 18:06:44 +02:00
|
|
|
}
|
|
|
|
}
|
2022-02-06 08:07:56 +02:00
|
|
|
|
|
|
|
/// generated route for
|
|
|
|
/// [VideoViewerPage]
|
|
|
|
class VideoViewerRoute extends PageRouteInfo<VideoViewerRouteArgs> {
|
|
|
|
VideoViewerRoute({Key? key, required String videoUrl})
|
|
|
|
: super(VideoViewerRoute.name,
|
|
|
|
path: '/video-viewer-page',
|
|
|
|
args: VideoViewerRouteArgs(key: key, videoUrl: videoUrl));
|
|
|
|
|
|
|
|
static const String name = 'VideoViewerRoute';
|
|
|
|
}
|
|
|
|
|
|
|
|
class VideoViewerRouteArgs {
|
|
|
|
const VideoViewerRouteArgs({this.key, required this.videoUrl});
|
|
|
|
|
|
|
|
final Key? key;
|
|
|
|
|
|
|
|
final String videoUrl;
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
return 'VideoViewerRouteArgs{key: $key, videoUrl: $videoUrl}';
|
|
|
|
}
|
|
|
|
}
|