mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: delta sync (#18428)
* feat: delta sync * fix: ignore iCloud assets * feat: dev logs * add full sync button * remove photo_manager dep for sync * misc logs and fix * add time taken to DLog * fix: build release iOS * ios sync go brrr * rename local sync service * update isar fork * rename to platform assets / albums * fix ci check --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
2b1b20ab0b
commit
dbdb64f6c5
49 changed files with 5634 additions and 488 deletions
|
|
@ -1,3 +1,4 @@
|
|||
// dart format width=80
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
// **************************************************************************
|
||||
|
|
@ -13,10 +14,7 @@ part of 'router.dart';
|
|||
/// [ActivitiesPage]
|
||||
class ActivitiesRoute extends PageRouteInfo<void> {
|
||||
const ActivitiesRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
ActivitiesRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(ActivitiesRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ActivitiesRoute';
|
||||
|
||||
|
|
@ -132,10 +130,7 @@ class AlbumAssetSelectionRouteArgs {
|
|||
/// [AlbumOptionsPage]
|
||||
class AlbumOptionsRoute extends PageRouteInfo<void> {
|
||||
const AlbumOptionsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AlbumOptionsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AlbumOptionsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AlbumOptionsRoute';
|
||||
|
||||
|
|
@ -156,10 +151,7 @@ class AlbumPreviewRoute extends PageRouteInfo<AlbumPreviewRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
AlbumPreviewRoute.name,
|
||||
args: AlbumPreviewRouteArgs(
|
||||
key: key,
|
||||
album: album,
|
||||
),
|
||||
args: AlbumPreviewRouteArgs(key: key, album: album),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -169,19 +161,13 @@ class AlbumPreviewRoute extends PageRouteInfo<AlbumPreviewRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<AlbumPreviewRouteArgs>();
|
||||
return AlbumPreviewPage(
|
||||
key: args.key,
|
||||
album: args.album,
|
||||
);
|
||||
return AlbumPreviewPage(key: args.key, album: args.album);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class AlbumPreviewRouteArgs {
|
||||
const AlbumPreviewRouteArgs({
|
||||
this.key,
|
||||
required this.album,
|
||||
});
|
||||
const AlbumPreviewRouteArgs({this.key, required this.album});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -203,10 +189,7 @@ class AlbumSharedUserSelectionRoute
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
AlbumSharedUserSelectionRoute.name,
|
||||
args: AlbumSharedUserSelectionRouteArgs(
|
||||
key: key,
|
||||
assets: assets,
|
||||
),
|
||||
args: AlbumSharedUserSelectionRouteArgs(key: key, assets: assets),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -216,19 +199,13 @@ class AlbumSharedUserSelectionRoute
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<AlbumSharedUserSelectionRouteArgs>();
|
||||
return AlbumSharedUserSelectionPage(
|
||||
key: args.key,
|
||||
assets: args.assets,
|
||||
);
|
||||
return AlbumSharedUserSelectionPage(key: args.key, assets: args.assets);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class AlbumSharedUserSelectionRouteArgs {
|
||||
const AlbumSharedUserSelectionRouteArgs({
|
||||
this.key,
|
||||
required this.assets,
|
||||
});
|
||||
const AlbumSharedUserSelectionRouteArgs({this.key, required this.assets});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -249,10 +226,7 @@ class AlbumViewerRoute extends PageRouteInfo<AlbumViewerRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
AlbumViewerRoute.name,
|
||||
args: AlbumViewerRouteArgs(
|
||||
key: key,
|
||||
albumId: albumId,
|
||||
),
|
||||
args: AlbumViewerRouteArgs(key: key, albumId: albumId),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -262,19 +236,13 @@ class AlbumViewerRoute extends PageRouteInfo<AlbumViewerRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<AlbumViewerRouteArgs>();
|
||||
return AlbumViewerPage(
|
||||
key: args.key,
|
||||
albumId: args.albumId,
|
||||
);
|
||||
return AlbumViewerPage(key: args.key, albumId: args.albumId);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class AlbumViewerRouteArgs {
|
||||
const AlbumViewerRouteArgs({
|
||||
this.key,
|
||||
required this.albumId,
|
||||
});
|
||||
const AlbumViewerRouteArgs({this.key, required this.albumId});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -290,10 +258,7 @@ class AlbumViewerRouteArgs {
|
|||
/// [AlbumsPage]
|
||||
class AlbumsRoute extends PageRouteInfo<void> {
|
||||
const AlbumsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AlbumsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AlbumsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AlbumsRoute';
|
||||
|
||||
|
|
@ -309,10 +274,7 @@ class AlbumsRoute extends PageRouteInfo<void> {
|
|||
/// [AllMotionPhotosPage]
|
||||
class AllMotionPhotosRoute extends PageRouteInfo<void> {
|
||||
const AllMotionPhotosRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AllMotionPhotosRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AllMotionPhotosRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AllMotionPhotosRoute';
|
||||
|
||||
|
|
@ -328,10 +290,7 @@ class AllMotionPhotosRoute extends PageRouteInfo<void> {
|
|||
/// [AllPeoplePage]
|
||||
class AllPeopleRoute extends PageRouteInfo<void> {
|
||||
const AllPeopleRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AllPeopleRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AllPeopleRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AllPeopleRoute';
|
||||
|
||||
|
|
@ -347,10 +306,7 @@ class AllPeopleRoute extends PageRouteInfo<void> {
|
|||
/// [AllPlacesPage]
|
||||
class AllPlacesRoute extends PageRouteInfo<void> {
|
||||
const AllPlacesRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AllPlacesRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AllPlacesRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AllPlacesRoute';
|
||||
|
||||
|
|
@ -366,10 +322,7 @@ class AllPlacesRoute extends PageRouteInfo<void> {
|
|||
/// [AllVideosPage]
|
||||
class AllVideosRoute extends PageRouteInfo<void> {
|
||||
const AllVideosRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AllVideosRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AllVideosRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AllVideosRoute';
|
||||
|
||||
|
|
@ -390,10 +343,7 @@ class AppLogDetailRoute extends PageRouteInfo<AppLogDetailRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
AppLogDetailRoute.name,
|
||||
args: AppLogDetailRouteArgs(
|
||||
key: key,
|
||||
logMessage: logMessage,
|
||||
),
|
||||
args: AppLogDetailRouteArgs(key: key, logMessage: logMessage),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -403,19 +353,13 @@ class AppLogDetailRoute extends PageRouteInfo<AppLogDetailRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<AppLogDetailRouteArgs>();
|
||||
return AppLogDetailPage(
|
||||
key: args.key,
|
||||
logMessage: args.logMessage,
|
||||
);
|
||||
return AppLogDetailPage(key: args.key, logMessage: args.logMessage);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class AppLogDetailRouteArgs {
|
||||
const AppLogDetailRouteArgs({
|
||||
this.key,
|
||||
required this.logMessage,
|
||||
});
|
||||
const AppLogDetailRouteArgs({this.key, required this.logMessage});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -431,10 +375,7 @@ class AppLogDetailRouteArgs {
|
|||
/// [AppLogPage]
|
||||
class AppLogRoute extends PageRouteInfo<void> {
|
||||
const AppLogRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
AppLogRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(AppLogRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AppLogRoute';
|
||||
|
||||
|
|
@ -450,10 +391,7 @@ class AppLogRoute extends PageRouteInfo<void> {
|
|||
/// [ArchivePage]
|
||||
class ArchiveRoute extends PageRouteInfo<void> {
|
||||
const ArchiveRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
ArchiveRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(ArchiveRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ArchiveRoute';
|
||||
|
||||
|
|
@ -469,10 +407,7 @@ class ArchiveRoute extends PageRouteInfo<void> {
|
|||
/// [BackupAlbumSelectionPage]
|
||||
class BackupAlbumSelectionRoute extends PageRouteInfo<void> {
|
||||
const BackupAlbumSelectionRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
BackupAlbumSelectionRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(BackupAlbumSelectionRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'BackupAlbumSelectionRoute';
|
||||
|
||||
|
|
@ -488,10 +423,7 @@ class BackupAlbumSelectionRoute extends PageRouteInfo<void> {
|
|||
/// [BackupControllerPage]
|
||||
class BackupControllerRoute extends PageRouteInfo<void> {
|
||||
const BackupControllerRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
BackupControllerRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(BackupControllerRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'BackupControllerRoute';
|
||||
|
||||
|
|
@ -507,10 +439,7 @@ class BackupControllerRoute extends PageRouteInfo<void> {
|
|||
/// [BackupOptionsPage]
|
||||
class BackupOptionsRoute extends PageRouteInfo<void> {
|
||||
const BackupOptionsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
BackupOptionsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(BackupOptionsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'BackupOptionsRoute';
|
||||
|
||||
|
|
@ -526,10 +455,7 @@ class BackupOptionsRoute extends PageRouteInfo<void> {
|
|||
/// [ChangePasswordPage]
|
||||
class ChangePasswordRoute extends PageRouteInfo<void> {
|
||||
const ChangePasswordRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
ChangePasswordRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(ChangePasswordRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ChangePasswordRoute';
|
||||
|
||||
|
|
@ -550,10 +476,7 @@ class CreateAlbumRoute extends PageRouteInfo<CreateAlbumRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CreateAlbumRoute.name,
|
||||
args: CreateAlbumRouteArgs(
|
||||
key: key,
|
||||
assets: assets,
|
||||
),
|
||||
args: CreateAlbumRouteArgs(key: key, assets: assets),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -563,20 +486,15 @@ class CreateAlbumRoute extends PageRouteInfo<CreateAlbumRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CreateAlbumRouteArgs>(
|
||||
orElse: () => const CreateAlbumRouteArgs());
|
||||
return CreateAlbumPage(
|
||||
key: args.key,
|
||||
assets: args.assets,
|
||||
orElse: () => const CreateAlbumRouteArgs(),
|
||||
);
|
||||
return CreateAlbumPage(key: args.key, assets: args.assets);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class CreateAlbumRouteArgs {
|
||||
const CreateAlbumRouteArgs({
|
||||
this.key,
|
||||
this.assets,
|
||||
});
|
||||
const CreateAlbumRouteArgs({this.key, this.assets});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -598,11 +516,7 @@ class CropImageRoute extends PageRouteInfo<CropImageRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
CropImageRoute.name,
|
||||
args: CropImageRouteArgs(
|
||||
key: key,
|
||||
image: image,
|
||||
asset: asset,
|
||||
),
|
||||
args: CropImageRouteArgs(key: key, image: image, asset: asset),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -612,11 +526,7 @@ class CropImageRoute extends PageRouteInfo<CropImageRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<CropImageRouteArgs>();
|
||||
return CropImagePage(
|
||||
key: args.key,
|
||||
image: args.image,
|
||||
asset: args.asset,
|
||||
);
|
||||
return CropImagePage(key: args.key, image: args.image, asset: args.asset);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
@ -702,10 +612,7 @@ class EditImageRouteArgs {
|
|||
/// [FailedBackupStatusPage]
|
||||
class FailedBackupStatusRoute extends PageRouteInfo<void> {
|
||||
const FailedBackupStatusRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
FailedBackupStatusRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(FailedBackupStatusRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'FailedBackupStatusRoute';
|
||||
|
||||
|
|
@ -721,10 +628,7 @@ class FailedBackupStatusRoute extends PageRouteInfo<void> {
|
|||
/// [FavoritesPage]
|
||||
class FavoritesRoute extends PageRouteInfo<void> {
|
||||
const FavoritesRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
FavoritesRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(FavoritesRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'FavoritesRoute';
|
||||
|
||||
|
|
@ -736,6 +640,22 @@ class FavoritesRoute extends PageRouteInfo<void> {
|
|||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [FeatInDevPage]
|
||||
class FeatInDevRoute extends PageRouteInfo<void> {
|
||||
const FeatInDevRoute({List<PageRouteInfo>? children})
|
||||
: super(FeatInDevRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'FeatInDevRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const FeatInDevPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [FilterImagePage]
|
||||
class FilterImageRoute extends PageRouteInfo<FilterImageRouteArgs> {
|
||||
|
|
@ -746,11 +666,7 @@ class FilterImageRoute extends PageRouteInfo<FilterImageRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
FilterImageRoute.name,
|
||||
args: FilterImageRouteArgs(
|
||||
key: key,
|
||||
image: image,
|
||||
asset: asset,
|
||||
),
|
||||
args: FilterImageRouteArgs(key: key, image: image, asset: asset),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -797,10 +713,7 @@ class FolderRoute extends PageRouteInfo<FolderRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
FolderRoute.name,
|
||||
args: FolderRouteArgs(
|
||||
key: key,
|
||||
folder: folder,
|
||||
),
|
||||
args: FolderRouteArgs(key: key, folder: folder),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -809,21 +722,16 @@ class FolderRoute extends PageRouteInfo<FolderRouteArgs> {
|
|||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args =
|
||||
data.argsAs<FolderRouteArgs>(orElse: () => const FolderRouteArgs());
|
||||
return FolderPage(
|
||||
key: args.key,
|
||||
folder: args.folder,
|
||||
final args = data.argsAs<FolderRouteArgs>(
|
||||
orElse: () => const FolderRouteArgs(),
|
||||
);
|
||||
return FolderPage(key: args.key, folder: args.folder);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class FolderRouteArgs {
|
||||
const FolderRouteArgs({
|
||||
this.key,
|
||||
this.folder,
|
||||
});
|
||||
const FolderRouteArgs({this.key, this.folder});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -903,10 +811,7 @@ class GalleryViewerRouteArgs {
|
|||
/// [HeaderSettingsPage]
|
||||
class HeaderSettingsRoute extends PageRouteInfo<void> {
|
||||
const HeaderSettingsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
HeaderSettingsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(HeaderSettingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'HeaderSettingsRoute';
|
||||
|
||||
|
|
@ -922,10 +827,7 @@ class HeaderSettingsRoute extends PageRouteInfo<void> {
|
|||
/// [LibraryPage]
|
||||
class LibraryRoute extends PageRouteInfo<void> {
|
||||
const LibraryRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
LibraryRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(LibraryRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LibraryRoute';
|
||||
|
||||
|
|
@ -941,10 +843,7 @@ class LibraryRoute extends PageRouteInfo<void> {
|
|||
/// [LocalAlbumsPage]
|
||||
class LocalAlbumsRoute extends PageRouteInfo<void> {
|
||||
const LocalAlbumsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
LocalAlbumsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(LocalAlbumsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LocalAlbumsRoute';
|
||||
|
||||
|
|
@ -956,14 +855,27 @@ class LocalAlbumsRoute extends PageRouteInfo<void> {
|
|||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [LocalMediaSummaryPage]
|
||||
class LocalMediaSummaryRoute extends PageRouteInfo<void> {
|
||||
const LocalMediaSummaryRoute({List<PageRouteInfo>? children})
|
||||
: super(LocalMediaSummaryRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LocalMediaSummaryRoute';
|
||||
|
||||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const LocalMediaSummaryPage();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [LockedPage]
|
||||
class LockedRoute extends PageRouteInfo<void> {
|
||||
const LockedRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
LockedRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(LockedRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LockedRoute';
|
||||
|
||||
|
|
@ -979,10 +891,7 @@ class LockedRoute extends PageRouteInfo<void> {
|
|||
/// [LoginPage]
|
||||
class LoginRoute extends PageRouteInfo<void> {
|
||||
const LoginRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
LoginRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(LoginRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'LoginRoute';
|
||||
|
||||
|
|
@ -1016,7 +925,8 @@ class MapLocationPickerRoute extends PageRouteInfo<MapLocationPickerRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<MapLocationPickerRouteArgs>(
|
||||
orElse: () => const MapLocationPickerRouteArgs());
|
||||
orElse: () => const MapLocationPickerRouteArgs(),
|
||||
);
|
||||
return MapLocationPickerPage(
|
||||
key: args.key,
|
||||
initialLatLng: args.initialLatLng,
|
||||
|
|
@ -1044,16 +954,10 @@ class MapLocationPickerRouteArgs {
|
|||
/// generated route for
|
||||
/// [MapPage]
|
||||
class MapRoute extends PageRouteInfo<MapRouteArgs> {
|
||||
MapRoute({
|
||||
Key? key,
|
||||
LatLng? initialLocation,
|
||||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
MapRoute({Key? key, LatLng? initialLocation, List<PageRouteInfo>? children})
|
||||
: super(
|
||||
MapRoute.name,
|
||||
args: MapRouteArgs(
|
||||
key: key,
|
||||
initialLocation: initialLocation,
|
||||
),
|
||||
args: MapRouteArgs(key: key, initialLocation: initialLocation),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1062,21 +966,16 @@ class MapRoute extends PageRouteInfo<MapRouteArgs> {
|
|||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args =
|
||||
data.argsAs<MapRouteArgs>(orElse: () => const MapRouteArgs());
|
||||
return MapPage(
|
||||
key: args.key,
|
||||
initialLocation: args.initialLocation,
|
||||
final args = data.argsAs<MapRouteArgs>(
|
||||
orElse: () => const MapRouteArgs(),
|
||||
);
|
||||
return MapPage(key: args.key, initialLocation: args.initialLocation);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class MapRouteArgs {
|
||||
const MapRouteArgs({
|
||||
this.key,
|
||||
this.initialLocation,
|
||||
});
|
||||
const MapRouteArgs({this.key, this.initialLocation});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1213,10 +1112,7 @@ class PartnerDetailRoute extends PageRouteInfo<PartnerDetailRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
PartnerDetailRoute.name,
|
||||
args: PartnerDetailRouteArgs(
|
||||
key: key,
|
||||
partner: partner,
|
||||
),
|
||||
args: PartnerDetailRouteArgs(key: key, partner: partner),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1226,19 +1122,13 @@ class PartnerDetailRoute extends PageRouteInfo<PartnerDetailRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<PartnerDetailRouteArgs>();
|
||||
return PartnerDetailPage(
|
||||
key: args.key,
|
||||
partner: args.partner,
|
||||
);
|
||||
return PartnerDetailPage(key: args.key, partner: args.partner);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class PartnerDetailRouteArgs {
|
||||
const PartnerDetailRouteArgs({
|
||||
this.key,
|
||||
required this.partner,
|
||||
});
|
||||
const PartnerDetailRouteArgs({this.key, required this.partner});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1254,10 +1144,7 @@ class PartnerDetailRouteArgs {
|
|||
/// [PartnerPage]
|
||||
class PartnerRoute extends PageRouteInfo<void> {
|
||||
const PartnerRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
PartnerRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(PartnerRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'PartnerRoute';
|
||||
|
||||
|
|
@ -1273,10 +1160,7 @@ class PartnerRoute extends PageRouteInfo<void> {
|
|||
/// [PeopleCollectionPage]
|
||||
class PeopleCollectionRoute extends PageRouteInfo<void> {
|
||||
const PeopleCollectionRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
PeopleCollectionRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(PeopleCollectionRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'PeopleCollectionRoute';
|
||||
|
||||
|
|
@ -1292,10 +1176,7 @@ class PeopleCollectionRoute extends PageRouteInfo<void> {
|
|||
/// [PermissionOnboardingPage]
|
||||
class PermissionOnboardingRoute extends PageRouteInfo<void> {
|
||||
const PermissionOnboardingRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
PermissionOnboardingRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(PermissionOnboardingRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'PermissionOnboardingRoute';
|
||||
|
||||
|
|
@ -1363,10 +1244,7 @@ class PersonResultRouteArgs {
|
|||
/// [PhotosPage]
|
||||
class PhotosRoute extends PageRouteInfo<void> {
|
||||
const PhotosRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
PhotosRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(PhotosRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'PhotosRoute';
|
||||
|
||||
|
|
@ -1387,10 +1265,7 @@ class PinAuthRoute extends PageRouteInfo<PinAuthRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
PinAuthRoute.name,
|
||||
args: PinAuthRouteArgs(
|
||||
key: key,
|
||||
createPinCode: createPinCode,
|
||||
),
|
||||
args: PinAuthRouteArgs(key: key, createPinCode: createPinCode),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1399,21 +1274,16 @@ class PinAuthRoute extends PageRouteInfo<PinAuthRouteArgs> {
|
|||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args =
|
||||
data.argsAs<PinAuthRouteArgs>(orElse: () => const PinAuthRouteArgs());
|
||||
return PinAuthPage(
|
||||
key: args.key,
|
||||
createPinCode: args.createPinCode,
|
||||
final args = data.argsAs<PinAuthRouteArgs>(
|
||||
orElse: () => const PinAuthRouteArgs(),
|
||||
);
|
||||
return PinAuthPage(key: args.key, createPinCode: args.createPinCode);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class PinAuthRouteArgs {
|
||||
const PinAuthRouteArgs({
|
||||
this.key,
|
||||
this.createPinCode = false,
|
||||
});
|
||||
const PinAuthRouteArgs({this.key, this.createPinCode = false});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1447,7 +1317,8 @@ class PlacesCollectionRoute extends PageRouteInfo<PlacesCollectionRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<PlacesCollectionRouteArgs>(
|
||||
orElse: () => const PlacesCollectionRouteArgs());
|
||||
orElse: () => const PlacesCollectionRouteArgs(),
|
||||
);
|
||||
return PlacesCollectionPage(
|
||||
key: args.key,
|
||||
currentLocation: args.currentLocation,
|
||||
|
|
@ -1457,10 +1328,7 @@ class PlacesCollectionRoute extends PageRouteInfo<PlacesCollectionRouteArgs> {
|
|||
}
|
||||
|
||||
class PlacesCollectionRouteArgs {
|
||||
const PlacesCollectionRouteArgs({
|
||||
this.key,
|
||||
this.currentLocation,
|
||||
});
|
||||
const PlacesCollectionRouteArgs({this.key, this.currentLocation});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1476,10 +1344,7 @@ class PlacesCollectionRouteArgs {
|
|||
/// [RecentlyTakenPage]
|
||||
class RecentlyTakenRoute extends PageRouteInfo<void> {
|
||||
const RecentlyTakenRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
RecentlyTakenRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(RecentlyTakenRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'RecentlyTakenRoute';
|
||||
|
||||
|
|
@ -1500,10 +1365,7 @@ class SearchRoute extends PageRouteInfo<SearchRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
SearchRoute.name,
|
||||
args: SearchRouteArgs(
|
||||
key: key,
|
||||
prefilter: prefilter,
|
||||
),
|
||||
args: SearchRouteArgs(key: key, prefilter: prefilter),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1512,21 +1374,16 @@ class SearchRoute extends PageRouteInfo<SearchRouteArgs> {
|
|||
static PageInfo page = PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args =
|
||||
data.argsAs<SearchRouteArgs>(orElse: () => const SearchRouteArgs());
|
||||
return SearchPage(
|
||||
key: args.key,
|
||||
prefilter: args.prefilter,
|
||||
final args = data.argsAs<SearchRouteArgs>(
|
||||
orElse: () => const SearchRouteArgs(),
|
||||
);
|
||||
return SearchPage(key: args.key, prefilter: args.prefilter);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class SearchRouteArgs {
|
||||
const SearchRouteArgs({
|
||||
this.key,
|
||||
this.prefilter,
|
||||
});
|
||||
const SearchRouteArgs({this.key, this.prefilter});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1542,10 +1399,7 @@ class SearchRouteArgs {
|
|||
/// [SettingsPage]
|
||||
class SettingsRoute extends PageRouteInfo<void> {
|
||||
const SettingsRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
SettingsRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(SettingsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SettingsRoute';
|
||||
|
||||
|
|
@ -1566,10 +1420,7 @@ class SettingsSubRoute extends PageRouteInfo<SettingsSubRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
SettingsSubRoute.name,
|
||||
args: SettingsSubRouteArgs(
|
||||
section: section,
|
||||
key: key,
|
||||
),
|
||||
args: SettingsSubRouteArgs(section: section, key: key),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1579,19 +1430,13 @@ class SettingsSubRoute extends PageRouteInfo<SettingsSubRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<SettingsSubRouteArgs>();
|
||||
return SettingsSubPage(
|
||||
args.section,
|
||||
key: args.key,
|
||||
);
|
||||
return SettingsSubPage(args.section, key: args.key);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class SettingsSubRouteArgs {
|
||||
const SettingsSubRouteArgs({
|
||||
required this.section,
|
||||
this.key,
|
||||
});
|
||||
const SettingsSubRouteArgs({required this.section, this.key});
|
||||
|
||||
final SettingSection section;
|
||||
|
||||
|
|
@ -1612,10 +1457,7 @@ class ShareIntentRoute extends PageRouteInfo<ShareIntentRouteArgs> {
|
|||
List<PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ShareIntentRoute.name,
|
||||
args: ShareIntentRouteArgs(
|
||||
key: key,
|
||||
attachments: attachments,
|
||||
),
|
||||
args: ShareIntentRouteArgs(key: key, attachments: attachments),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
|
|
@ -1625,19 +1467,13 @@ class ShareIntentRoute extends PageRouteInfo<ShareIntentRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ShareIntentRouteArgs>();
|
||||
return ShareIntentPage(
|
||||
key: args.key,
|
||||
attachments: args.attachments,
|
||||
);
|
||||
return ShareIntentPage(key: args.key, attachments: args.attachments);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class ShareIntentRouteArgs {
|
||||
const ShareIntentRouteArgs({
|
||||
this.key,
|
||||
required this.attachments,
|
||||
});
|
||||
const ShareIntentRouteArgs({this.key, required this.attachments});
|
||||
|
||||
final Key? key;
|
||||
|
||||
|
|
@ -1675,7 +1511,8 @@ class SharedLinkEditRoute extends PageRouteInfo<SharedLinkEditRouteArgs> {
|
|||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<SharedLinkEditRouteArgs>(
|
||||
orElse: () => const SharedLinkEditRouteArgs());
|
||||
orElse: () => const SharedLinkEditRouteArgs(),
|
||||
);
|
||||
return SharedLinkEditPage(
|
||||
key: args.key,
|
||||
existingLink: args.existingLink,
|
||||
|
|
@ -1712,10 +1549,7 @@ class SharedLinkEditRouteArgs {
|
|||
/// [SharedLinkPage]
|
||||
class SharedLinkRoute extends PageRouteInfo<void> {
|
||||
const SharedLinkRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
SharedLinkRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(SharedLinkRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SharedLinkRoute';
|
||||
|
||||
|
|
@ -1731,10 +1565,7 @@ class SharedLinkRoute extends PageRouteInfo<void> {
|
|||
/// [SplashScreenPage]
|
||||
class SplashScreenRoute extends PageRouteInfo<void> {
|
||||
const SplashScreenRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
SplashScreenRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(SplashScreenRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'SplashScreenRoute';
|
||||
|
||||
|
|
@ -1750,10 +1581,7 @@ class SplashScreenRoute extends PageRouteInfo<void> {
|
|||
/// [TabControllerPage]
|
||||
class TabControllerRoute extends PageRouteInfo<void> {
|
||||
const TabControllerRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
TabControllerRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(TabControllerRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'TabControllerRoute';
|
||||
|
||||
|
|
@ -1769,10 +1597,7 @@ class TabControllerRoute extends PageRouteInfo<void> {
|
|||
/// [TrashPage]
|
||||
class TrashRoute extends PageRouteInfo<void> {
|
||||
const TrashRoute({List<PageRouteInfo>? children})
|
||||
: super(
|
||||
TrashRoute.name,
|
||||
initialChildren: children,
|
||||
);
|
||||
: super(TrashRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'TrashRoute';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue