Add android per-app proxy
This commit is contained in:
@@ -22,6 +22,7 @@ part 'mobile_routes.g.dart';
|
||||
path: SettingsRoute.path,
|
||||
routes: [
|
||||
TypedGoRoute<ConfigOptionsRoute>(path: ConfigOptionsRoute.path),
|
||||
TypedGoRoute<PerAppProxyRoute>(path: PerAppProxyRoute.path),
|
||||
],
|
||||
),
|
||||
TypedGoRoute<AboutRoute>(path: AboutRoute.path),
|
||||
@@ -84,6 +85,21 @@ class ConfigOptionsRoute extends GoRouteData {
|
||||
}
|
||||
}
|
||||
|
||||
class PerAppProxyRoute extends GoRouteData {
|
||||
const PerAppProxyRoute();
|
||||
static const path = 'per-app-proxy';
|
||||
|
||||
static final GlobalKey<NavigatorState> $parentNavigatorKey = rootNavigatorKey;
|
||||
|
||||
@override
|
||||
Page<void> buildPage(BuildContext context, GoRouterState state) {
|
||||
return const MaterialPage(
|
||||
fullscreenDialog: true,
|
||||
child: PerAppProxyPage(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class AboutRoute extends GoRouteData {
|
||||
const AboutRoute();
|
||||
static const path = 'about';
|
||||
|
||||
Reference in New Issue
Block a user