create dedicated log screen
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user