mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 01:43:13 +00:00
feat: Implement BackupProviderPicker router page
This commit is contained in:
parent
49896a8e9f
commit
eaf671ede5
|
@ -15,7 +15,6 @@ import 'package:selfprivacy/ui/components/jobs_content/server_job_card.dart';
|
||||||
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
|
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
|
||||||
import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart';
|
import 'package:selfprivacy/ui/components/brand_icons/brand_icons.dart';
|
||||||
import 'package:selfprivacy/ui/helpers/modals.dart';
|
import 'package:selfprivacy/ui/helpers/modals.dart';
|
||||||
import 'package:selfprivacy/ui/pages/backups/backup_provider_picker.dart';
|
|
||||||
import 'package:selfprivacy/ui/pages/backups/change_period_modal.dart';
|
import 'package:selfprivacy/ui/pages/backups/change_period_modal.dart';
|
||||||
import 'package:selfprivacy/ui/pages/backups/change_rotation_quotas_modal.dart';
|
import 'package:selfprivacy/ui/pages/backups/change_rotation_quotas_modal.dart';
|
||||||
import 'package:selfprivacy/ui/pages/backups/copy_encryption_key_modal.dart';
|
import 'package:selfprivacy/ui/pages/backups/copy_encryption_key_modal.dart';
|
||||||
|
@ -76,7 +75,7 @@ class BackupDetailsPage extends StatelessWidget {
|
||||||
BrandButton.rised(
|
BrandButton.rised(
|
||||||
onPressed: preventActions
|
onPressed: preventActions
|
||||||
? null
|
? null
|
||||||
: () => context.pushRoute(BackupProviderPicker()),
|
: () => context.pushRoute(const BackupProviderPicker()),
|
||||||
text: 'backup.initialize'.tr(),
|
text: 'backup.initialize'.tr(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:auto_route/auto_route.dart';
|
||||||
import 'package:cubit_form/cubit_form.dart';
|
import 'package:cubit_form/cubit_form.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -6,6 +7,7 @@ import 'package:selfprivacy/logic/cubit/support_system/support_system_cubit.dart
|
||||||
import 'package:selfprivacy/ui/components/buttons/brand_button.dart';
|
import 'package:selfprivacy/ui/components/buttons/brand_button.dart';
|
||||||
import 'package:selfprivacy/ui/layouts/responsive_layout_with_infobox.dart';
|
import 'package:selfprivacy/ui/layouts/responsive_layout_with_infobox.dart';
|
||||||
|
|
||||||
|
@RoutePage()
|
||||||
class BackupProviderPicker extends StatelessWidget {
|
class BackupProviderPicker extends StatelessWidget {
|
||||||
const BackupProviderPicker({
|
const BackupProviderPicker({
|
||||||
super.key,
|
super.key,
|
||||||
|
|
|
@ -5,11 +5,9 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/server_provider_form_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/server_provider_form_cubit.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/forms/factories/field_cubit_factory.dart';
|
import 'package:selfprivacy/logic/cubit/forms/factories/field_cubit_factory.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/backblaze_form_cubit.dart';
|
|
||||||
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/dns_provider_form_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/dns_provider_form_cubit.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/domain_setup_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/domain_setup_cubit.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/root_user_form_cubit.dart';
|
import 'package:selfprivacy/logic/cubit/forms/setup/initializing/root_user_form_cubit.dart';
|
||||||
import 'package:selfprivacy/logic/cubit/support_system/support_system_cubit.dart';
|
|
||||||
import 'package:selfprivacy/ui/components/buttons/brand_button.dart';
|
import 'package:selfprivacy/ui/components/buttons/brand_button.dart';
|
||||||
import 'package:selfprivacy/ui/components/brand_timer/brand_timer.dart';
|
import 'package:selfprivacy/ui/components/brand_timer/brand_timer.dart';
|
||||||
import 'package:selfprivacy/ui/components/buttons/outlined_button.dart';
|
import 'package:selfprivacy/ui/components/buttons/outlined_button.dart';
|
||||||
|
|
|
@ -100,6 +100,7 @@ class RootRouter extends _$RootRouter {
|
||||||
AutoRoute(page: BackupsListRoute.page),
|
AutoRoute(page: BackupsListRoute.page),
|
||||||
AutoRoute(page: ServerStorageRoute.page),
|
AutoRoute(page: ServerStorageRoute.page),
|
||||||
AutoRoute(page: ExtendingVolumeRoute.page),
|
AutoRoute(page: ExtendingVolumeRoute.page),
|
||||||
|
AutoRoute(page: BackupProviderPicker.page),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
AutoRoute(page: ServicesMigrationRoute.page),
|
AutoRoute(page: ServicesMigrationRoute.page),
|
||||||
|
|
|
@ -15,6 +15,18 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
final Map<String, PageFactory> pagesMap = {
|
final Map<String, PageFactory> pagesMap = {
|
||||||
|
OnboardingRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const OnboardingPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
BackupDetailsRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const BackupDetailsPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
BackupsListRoute.name: (routeData) {
|
BackupsListRoute.name: (routeData) {
|
||||||
final args = routeData.argsAs<BackupsListRouteArgs>();
|
final args = routeData.argsAs<BackupsListRouteArgs>();
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
|
@ -25,76 +37,16 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
BackupDetailsRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const BackupDetailsPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
DevicesRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const DevicesScreen(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
DnsDetailsRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const DnsDetailsPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
AboutApplicationRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const AboutApplicationPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
AppSettingsRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const AppSettingsPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
DeveloperSettingsRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const DeveloperSettingsPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
ConsoleRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const ConsolePage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
MoreRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const MorePage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
OnboardingRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const OnboardingPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
ProvidersRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const ProvidersPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
RecoveryKeyRoute.name: (routeData) {
|
RecoveryKeyRoute.name: (routeData) {
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
routeData: routeData,
|
routeData: routeData,
|
||||||
child: const RecoveryKeyPage(),
|
child: const RecoveryKeyPage(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
RootRoute.name: (routeData) {
|
ProvidersRoute.name: (routeData) {
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
routeData: routeData,
|
routeData: routeData,
|
||||||
child: WrappedRoute(child: const RootPage()),
|
child: const ProvidersPage(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
ServerDetailsRoute.name: (routeData) {
|
ServerDetailsRoute.name: (routeData) {
|
||||||
|
@ -115,6 +67,17 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
ExtendingVolumeRoute.name: (routeData) {
|
||||||
|
final args = routeData.argsAs<ExtendingVolumeRouteArgs>();
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: ExtendingVolumePage(
|
||||||
|
diskVolumeToResize: args.diskVolumeToResize,
|
||||||
|
diskStatus: args.diskStatus,
|
||||||
|
key: args.key,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
ServerStorageRoute.name: (routeData) {
|
ServerStorageRoute.name: (routeData) {
|
||||||
final args = routeData.argsAs<ServerStorageRouteArgs>();
|
final args = routeData.argsAs<ServerStorageRouteArgs>();
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
|
@ -125,15 +88,52 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
ExtendingVolumeRoute.name: (routeData) {
|
DevicesRoute.name: (routeData) {
|
||||||
final args = routeData.argsAs<ExtendingVolumeRouteArgs>();
|
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
routeData: routeData,
|
routeData: routeData,
|
||||||
child: ExtendingVolumePage(
|
child: const DevicesScreen(),
|
||||||
diskVolumeToResize: args.diskVolumeToResize,
|
);
|
||||||
diskStatus: args.diskStatus,
|
},
|
||||||
key: args.key,
|
RootRoute.name: (routeData) {
|
||||||
),
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: WrappedRoute(child: const RootPage()),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
AboutApplicationRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const AboutApplicationPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
ConsoleRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const ConsolePage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
MoreRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const MorePage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
AppSettingsRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const AppSettingsPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
DeveloperSettingsRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const DeveloperSettingsPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
DnsDetailsRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const DnsDetailsPage(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
ServiceRoute.name: (routeData) {
|
ServiceRoute.name: (routeData) {
|
||||||
|
@ -152,18 +152,6 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
child: const ServicesPage(),
|
child: const ServicesPage(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
InitializingRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const InitializingPage(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
RecoveryRoute.name: (routeData) {
|
|
||||||
return AutoRoutePage<dynamic>(
|
|
||||||
routeData: routeData,
|
|
||||||
child: const RecoveryRouting(),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
UsersRoute.name: (routeData) {
|
UsersRoute.name: (routeData) {
|
||||||
return AutoRoutePage<dynamic>(
|
return AutoRoutePage<dynamic>(
|
||||||
routeData: routeData,
|
routeData: routeData,
|
||||||
|
@ -186,9 +174,55 @@ abstract class _$RootRouter extends RootStackRouter {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
InitializingRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const InitializingPage(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
RecoveryRoute.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const RecoveryRouting(),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
BackupProviderPicker.name: (routeData) {
|
||||||
|
return AutoRoutePage<dynamic>(
|
||||||
|
routeData: routeData,
|
||||||
|
child: const BackupProviderPicker(),
|
||||||
|
);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [OnboardingPage]
|
||||||
|
class OnboardingRoute extends PageRouteInfo<void> {
|
||||||
|
const OnboardingRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
OnboardingRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'OnboardingRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [BackupDetailsPage]
|
||||||
|
class BackupDetailsRoute extends PageRouteInfo<void> {
|
||||||
|
const BackupDetailsRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
BackupDetailsRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'BackupDetailsRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [BackupsListPage]
|
/// [BackupsListPage]
|
||||||
class BackupsListRoute extends PageRouteInfo<BackupsListRouteArgs> {
|
class BackupsListRoute extends PageRouteInfo<BackupsListRouteArgs> {
|
||||||
|
@ -227,146 +261,6 @@ class BackupsListRouteArgs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [BackupDetailsPage]
|
|
||||||
class BackupDetailsRoute extends PageRouteInfo<void> {
|
|
||||||
const BackupDetailsRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
BackupDetailsRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'BackupDetailsRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [DevicesScreen]
|
|
||||||
class DevicesRoute extends PageRouteInfo<void> {
|
|
||||||
const DevicesRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
DevicesRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'DevicesRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [DnsDetailsPage]
|
|
||||||
class DnsDetailsRoute extends PageRouteInfo<void> {
|
|
||||||
const DnsDetailsRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
DnsDetailsRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'DnsDetailsRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [AboutApplicationPage]
|
|
||||||
class AboutApplicationRoute extends PageRouteInfo<void> {
|
|
||||||
const AboutApplicationRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
AboutApplicationRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'AboutApplicationRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [AppSettingsPage]
|
|
||||||
class AppSettingsRoute extends PageRouteInfo<void> {
|
|
||||||
const AppSettingsRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
AppSettingsRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'AppSettingsRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [DeveloperSettingsPage]
|
|
||||||
class DeveloperSettingsRoute extends PageRouteInfo<void> {
|
|
||||||
const DeveloperSettingsRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
DeveloperSettingsRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'DeveloperSettingsRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [ConsolePage]
|
|
||||||
class ConsoleRoute extends PageRouteInfo<void> {
|
|
||||||
const ConsoleRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
ConsoleRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'ConsoleRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [MorePage]
|
|
||||||
class MoreRoute extends PageRouteInfo<void> {
|
|
||||||
const MoreRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
MoreRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'MoreRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [OnboardingPage]
|
|
||||||
class OnboardingRoute extends PageRouteInfo<void> {
|
|
||||||
const OnboardingRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
OnboardingRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'OnboardingRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [ProvidersPage]
|
|
||||||
class ProvidersRoute extends PageRouteInfo<void> {
|
|
||||||
const ProvidersRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
ProvidersRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'ProvidersRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [RecoveryKeyPage]
|
/// [RecoveryKeyPage]
|
||||||
class RecoveryKeyRoute extends PageRouteInfo<void> {
|
class RecoveryKeyRoute extends PageRouteInfo<void> {
|
||||||
|
@ -382,15 +276,15 @@ class RecoveryKeyRoute extends PageRouteInfo<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [RootPage]
|
/// [ProvidersPage]
|
||||||
class RootRoute extends PageRouteInfo<void> {
|
class ProvidersRoute extends PageRouteInfo<void> {
|
||||||
const RootRoute({List<PageRouteInfo>? children})
|
const ProvidersRoute({List<PageRouteInfo>? children})
|
||||||
: super(
|
: super(
|
||||||
RootRoute.name,
|
ProvidersRoute.name,
|
||||||
initialChildren: children,
|
initialChildren: children,
|
||||||
);
|
);
|
||||||
|
|
||||||
static const String name = 'RootRoute';
|
static const String name = 'ProvidersRoute';
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
}
|
}
|
||||||
|
@ -457,44 +351,6 @@ class ServicesMigrationRouteArgs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [ServerStoragePage]
|
|
||||||
class ServerStorageRoute extends PageRouteInfo<ServerStorageRouteArgs> {
|
|
||||||
ServerStorageRoute({
|
|
||||||
required DiskStatus diskStatus,
|
|
||||||
Key? key,
|
|
||||||
List<PageRouteInfo>? children,
|
|
||||||
}) : super(
|
|
||||||
ServerStorageRoute.name,
|
|
||||||
args: ServerStorageRouteArgs(
|
|
||||||
diskStatus: diskStatus,
|
|
||||||
key: key,
|
|
||||||
),
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'ServerStorageRoute';
|
|
||||||
|
|
||||||
static const PageInfo<ServerStorageRouteArgs> page =
|
|
||||||
PageInfo<ServerStorageRouteArgs>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
class ServerStorageRouteArgs {
|
|
||||||
const ServerStorageRouteArgs({
|
|
||||||
required this.diskStatus,
|
|
||||||
this.key,
|
|
||||||
});
|
|
||||||
|
|
||||||
final DiskStatus diskStatus;
|
|
||||||
|
|
||||||
final Key? key;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'ServerStorageRouteArgs{diskStatus: $diskStatus, key: $key}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [ExtendingVolumePage]
|
/// [ExtendingVolumePage]
|
||||||
class ExtendingVolumeRoute extends PageRouteInfo<ExtendingVolumeRouteArgs> {
|
class ExtendingVolumeRoute extends PageRouteInfo<ExtendingVolumeRouteArgs> {
|
||||||
|
@ -538,6 +394,156 @@ class ExtendingVolumeRouteArgs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [ServerStoragePage]
|
||||||
|
class ServerStorageRoute extends PageRouteInfo<ServerStorageRouteArgs> {
|
||||||
|
ServerStorageRoute({
|
||||||
|
required DiskStatus diskStatus,
|
||||||
|
Key? key,
|
||||||
|
List<PageRouteInfo>? children,
|
||||||
|
}) : super(
|
||||||
|
ServerStorageRoute.name,
|
||||||
|
args: ServerStorageRouteArgs(
|
||||||
|
diskStatus: diskStatus,
|
||||||
|
key: key,
|
||||||
|
),
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'ServerStorageRoute';
|
||||||
|
|
||||||
|
static const PageInfo<ServerStorageRouteArgs> page =
|
||||||
|
PageInfo<ServerStorageRouteArgs>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
class ServerStorageRouteArgs {
|
||||||
|
const ServerStorageRouteArgs({
|
||||||
|
required this.diskStatus,
|
||||||
|
this.key,
|
||||||
|
});
|
||||||
|
|
||||||
|
final DiskStatus diskStatus;
|
||||||
|
|
||||||
|
final Key? key;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
return 'ServerStorageRouteArgs{diskStatus: $diskStatus, key: $key}';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [DevicesScreen]
|
||||||
|
class DevicesRoute extends PageRouteInfo<void> {
|
||||||
|
const DevicesRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
DevicesRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'DevicesRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [RootPage]
|
||||||
|
class RootRoute extends PageRouteInfo<void> {
|
||||||
|
const RootRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
RootRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'RootRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [AboutApplicationPage]
|
||||||
|
class AboutApplicationRoute extends PageRouteInfo<void> {
|
||||||
|
const AboutApplicationRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
AboutApplicationRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'AboutApplicationRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [ConsolePage]
|
||||||
|
class ConsoleRoute extends PageRouteInfo<void> {
|
||||||
|
const ConsoleRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
ConsoleRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'ConsoleRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [MorePage]
|
||||||
|
class MoreRoute extends PageRouteInfo<void> {
|
||||||
|
const MoreRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
MoreRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'MoreRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [AppSettingsPage]
|
||||||
|
class AppSettingsRoute extends PageRouteInfo<void> {
|
||||||
|
const AppSettingsRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
AppSettingsRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'AppSettingsRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [DeveloperSettingsPage]
|
||||||
|
class DeveloperSettingsRoute extends PageRouteInfo<void> {
|
||||||
|
const DeveloperSettingsRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
DeveloperSettingsRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'DeveloperSettingsRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [DnsDetailsPage]
|
||||||
|
class DnsDetailsRoute extends PageRouteInfo<void> {
|
||||||
|
const DnsDetailsRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
DnsDetailsRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'DnsDetailsRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [ServicePage]
|
/// [ServicePage]
|
||||||
class ServiceRoute extends PageRouteInfo<ServiceRouteArgs> {
|
class ServiceRoute extends PageRouteInfo<ServiceRouteArgs> {
|
||||||
|
@ -590,34 +596,6 @@ class ServicesRoute extends PageRouteInfo<void> {
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [InitializingPage]
|
|
||||||
class InitializingRoute extends PageRouteInfo<void> {
|
|
||||||
const InitializingRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
InitializingRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'InitializingRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
|
||||||
/// [RecoveryRouting]
|
|
||||||
class RecoveryRoute extends PageRouteInfo<void> {
|
|
||||||
const RecoveryRoute({List<PageRouteInfo>? children})
|
|
||||||
: super(
|
|
||||||
RecoveryRoute.name,
|
|
||||||
initialChildren: children,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const String name = 'RecoveryRoute';
|
|
||||||
|
|
||||||
static const PageInfo<void> page = PageInfo<void>(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// generated route for
|
/// generated route for
|
||||||
/// [UsersPage]
|
/// [UsersPage]
|
||||||
class UsersRoute extends PageRouteInfo<void> {
|
class UsersRoute extends PageRouteInfo<void> {
|
||||||
|
@ -683,3 +661,45 @@ class UserDetailsRouteArgs {
|
||||||
return 'UserDetailsRouteArgs{login: $login, key: $key}';
|
return 'UserDetailsRouteArgs{login: $login, key: $key}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [InitializingPage]
|
||||||
|
class InitializingRoute extends PageRouteInfo<void> {
|
||||||
|
const InitializingRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
InitializingRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'InitializingRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [RecoveryRouting]
|
||||||
|
class RecoveryRoute extends PageRouteInfo<void> {
|
||||||
|
const RecoveryRoute({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
RecoveryRoute.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'RecoveryRoute';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// generated route for
|
||||||
|
/// [BackupProviderPicker]
|
||||||
|
class BackupProviderPicker extends PageRouteInfo<void> {
|
||||||
|
const BackupProviderPicker({List<PageRouteInfo>? children})
|
||||||
|
: super(
|
||||||
|
BackupProviderPicker.name,
|
||||||
|
initialChildren: children,
|
||||||
|
);
|
||||||
|
|
||||||
|
static const String name = 'BackupProviderPicker';
|
||||||
|
|
||||||
|
static const PageInfo<void> page = PageInfo<void>(name);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue