implement custom tracking policy

This commit is contained in:
Fabian Freund
2026-01-22 09:08:50 +01:00
parent fe1b20af1b
commit 84e1fa37e0
16 changed files with 1513 additions and 315 deletions
+27
View File
@@ -151,6 +151,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
name: 'TrackingProtectionExceptionsRoute',
factory: $TrackingProtectionExceptionsRoute._fromState,
),
GoRouteData.$route(
path: 'custom_tracking_protection',
name: 'CustomTrackingProtectionRoute',
factory: $CustomTrackingProtectionRoute._fromState,
),
GoRouteData.$route(
path: 'error_logs',
name: 'ErrorLogsRoute',
@@ -478,6 +483,28 @@ mixin $TrackingProtectionExceptionsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin $CustomTrackingProtectionRoute on GoRouteData {
static CustomTrackingProtectionRoute _fromState(GoRouterState state) =>
CustomTrackingProtectionRoute();
@override
String get location =>
GoRouteData.$location('/settings/custom_tracking_protection');
@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 $ErrorLogsRoute on GoRouteData {
static ErrorLogsRoute _fromState(GoRouterState state) => ErrorLogsRoute();