Add Supa account and search changes
This commit is contained in:
@@ -28,6 +28,7 @@ import 'package:weblibre/core/routing/widgets/bottom_sheet_page.dart';
|
||||
import 'package:weblibre/core/routing/widgets/dialog_page.dart';
|
||||
import 'package:weblibre/domain/entities/profile.dart';
|
||||
import 'package:weblibre/features/about/presentation/screens/about.dart';
|
||||
import 'package:weblibre/features/account/presentation/screens/account_settings.dart';
|
||||
import 'package:weblibre/features/addons/presentation/screens/addon_details.dart';
|
||||
import 'package:weblibre/features/addons/presentation/screens/addon_internal_settings.dart';
|
||||
import 'package:weblibre/features/addons/presentation/screens/addon_listing_details.dart';
|
||||
|
||||
@@ -1635,6 +1635,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
|
||||
name: 'ErrorLogsRoute',
|
||||
factory: $ErrorLogsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'account',
|
||||
name: 'AccountSettingsRoute',
|
||||
factory: $AccountSettingsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'sync',
|
||||
name: 'SyncSettingsRoute',
|
||||
@@ -2103,6 +2108,27 @@ mixin $ErrorLogsRoute on GoRouteData {
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
mixin $AccountSettingsRoute on GoRouteData {
|
||||
static AccountSettingsRoute _fromState(GoRouterState state) =>
|
||||
AccountSettingsRoute();
|
||||
|
||||
@override
|
||||
String get location => GoRouteData.$location('/settings/account');
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
mixin $SyncSettingsRoute on GoRouteData {
|
||||
static SyncSettingsRoute _fromState(GoRouterState state) =>
|
||||
SyncSettingsRoute();
|
||||
|
||||
@@ -96,6 +96,10 @@ part of 'routes.dart';
|
||||
path: 'custom_tracking_protection',
|
||||
),
|
||||
TypedGoRoute<ErrorLogsRoute>(name: 'ErrorLogsRoute', path: 'error_logs'),
|
||||
TypedGoRoute<AccountSettingsRoute>(
|
||||
name: 'AccountSettingsRoute',
|
||||
path: 'account',
|
||||
),
|
||||
TypedGoRoute<SyncSettingsRoute>(name: 'SyncSettingsRoute', path: 'sync'),
|
||||
TypedGoRoute<UrlCleanerSettingsRoute>(
|
||||
name: 'UrlCleanerSettingsRoute',
|
||||
@@ -272,6 +276,13 @@ class CustomTrackingProtectionRoute extends GoRouteData
|
||||
}
|
||||
}
|
||||
|
||||
class AccountSettingsRoute extends GoRouteData with $AccountSettingsRoute {
|
||||
@override
|
||||
Widget build(BuildContext context, GoRouterState state) {
|
||||
return const AccountSettingsScreen();
|
||||
}
|
||||
}
|
||||
|
||||
class SyncSettingsRoute extends GoRouteData with $SyncSettingsRoute {
|
||||
@override
|
||||
Widget build(BuildContext context, GoRouterState state) {
|
||||
|
||||
Reference in New Issue
Block a user