gesture feature initial
This commit is contained in:
@@ -60,6 +60,7 @@ import 'package:weblibre/features/geckoview/features/tabs/presentation/screens/c
|
||||
import 'package:weblibre/features/geckoview/features/tabs/presentation/screens/container_edit.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/presentation/screens/container_list.dart';
|
||||
import 'package:weblibre/features/geckoview/features/tabs/presentation/screens/container_selection.dart';
|
||||
import 'package:weblibre/features/gestures/presentation/screens/gesture_settings_screen.dart';
|
||||
import 'package:weblibre/features/onboarding/presentation/onboarding.dart';
|
||||
import 'package:weblibre/features/proxy/data/models/proxy_profile_seed.dart';
|
||||
import 'package:weblibre/features/proxy/presentation/screens/proxy_routing_settings.dart';
|
||||
|
||||
@@ -1552,6 +1552,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
|
||||
name: 'BrowsingSettingsRoute',
|
||||
factory: $BrowsingSettingsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'gestures',
|
||||
name: 'GestureSettingsRoute',
|
||||
factory: $GestureSettingsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'privacy_security',
|
||||
name: 'PrivacySecuritySettingsRoute',
|
||||
@@ -1766,6 +1771,27 @@ mixin $BrowsingSettingsRoute on GoRouteData {
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
mixin $GestureSettingsRoute on GoRouteData {
|
||||
static GestureSettingsRoute _fromState(GoRouterState state) =>
|
||||
GestureSettingsRoute();
|
||||
|
||||
@override
|
||||
String get location => GoRouteData.$location('/settings/gestures');
|
||||
|
||||
@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 $PrivacySecuritySettingsRoute on GoRouteData {
|
||||
static PrivacySecuritySettingsRoute _fromState(GoRouterState state) =>
|
||||
PrivacySecuritySettingsRoute();
|
||||
|
||||
@@ -31,6 +31,10 @@ part of 'routes.dart';
|
||||
name: 'BrowsingSettingsRoute',
|
||||
path: 'browsing',
|
||||
),
|
||||
TypedGoRoute<GestureSettingsRoute>(
|
||||
name: 'GestureSettingsRoute',
|
||||
path: 'gestures',
|
||||
),
|
||||
TypedGoRoute<PrivacySecuritySettingsRoute>(
|
||||
name: 'PrivacySecuritySettingsRoute',
|
||||
path: 'privacy_security',
|
||||
@@ -159,6 +163,13 @@ class BrowsingSettingsRoute extends GoRouteData with $BrowsingSettingsRoute {
|
||||
}
|
||||
}
|
||||
|
||||
class GestureSettingsRoute extends GoRouteData with $GestureSettingsRoute {
|
||||
@override
|
||||
Widget build(BuildContext context, GoRouterState state) {
|
||||
return const GestureSettingsScreen();
|
||||
}
|
||||
}
|
||||
|
||||
class PrivacySecuritySettingsRoute extends GoRouteData
|
||||
with $PrivacySecuritySettingsRoute {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user