create dedicated log screen

This commit is contained in:
Fabian Freund
2026-01-21 13:48:10 +01:00
parent bf068d5318
commit b573ed5645
6 changed files with 407 additions and 16 deletions
+25
View File
@@ -151,6 +151,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
name: 'TrackingProtectionExceptionsRoute',
factory: $TrackingProtectionExceptionsRoute._fromState,
),
GoRouteData.$route(
path: 'error_logs',
name: 'ErrorLogsRoute',
factory: $ErrorLogsRoute._fromState,
),
],
);
@@ -473,6 +478,26 @@ mixin $TrackingProtectionExceptionsRoute on GoRouteData {
void replace(BuildContext context) => context.replace(location);
}
mixin $ErrorLogsRoute on GoRouteData {
static ErrorLogsRoute _fromState(GoRouterState state) => ErrorLogsRoute();
@override
String get location => GoRouteData.$location('/settings/error_logs');
@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 $browserRoute => GoRouteData.$route(
path: '/browser',
name: 'BrowserRoute',