sync initial
This commit is contained in:
@@ -1427,6 +1427,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
|
||||
name: 'ErrorLogsRoute',
|
||||
factory: $ErrorLogsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'sync',
|
||||
name: 'SyncSettingsRoute',
|
||||
factory: $SyncSettingsRoute._fromState,
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -1791,6 +1796,27 @@ mixin $ErrorLogsRoute on GoRouteData {
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
mixin $SyncSettingsRoute on GoRouteData {
|
||||
static SyncSettingsRoute _fromState(GoRouterState state) =>
|
||||
SyncSettingsRoute();
|
||||
|
||||
@override
|
||||
String get location => GoRouteData.$location('/settings/sync');
|
||||
|
||||
@override
|
||||
void go(BuildContext context) => context.go(location);
|
||||
|
||||
@override
|
||||
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
|
||||
|
||||
@override
|
||||
void pushReplacement(BuildContext context) =>
|
||||
context.pushReplacement(location);
|
||||
|
||||
@override
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
RouteBase get $torProxyRoute => GoRouteData.$route(
|
||||
path: '/tor',
|
||||
name: 'TorProxyRoute',
|
||||
|
||||
Reference in New Issue
Block a user