Showing
1 changed file
with
4 additions
and
0 deletions
| @@ -84,7 +84,9 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | @@ -84,7 +84,9 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | ||
| 84 | required String initialRoute, | 84 | required String initialRoute, |
| 85 | Iterable<GetPage> Function(Iterable<GetPage> afterAnchor)? filterPages, | 85 | Iterable<GetPage> Function(Iterable<GetPage> afterAnchor)? filterPages, |
| 86 | GetDelegate? delegate, | 86 | GetDelegate? delegate, |
| 87 | + String? restorationScopeId, | ||
| 87 | }) : this.pickPages( | 88 | }) : this.pickPages( |
| 89 | + restorationScopeId: restorationScopeId, | ||
| 88 | pickPages: (config) { | 90 | pickPages: (config) { |
| 89 | Iterable<GetPage<dynamic>> ret; | 91 | Iterable<GetPage<dynamic>> ret; |
| 90 | if (anchorRoute == null) { | 92 | if (anchorRoute == null) { |
| @@ -114,6 +116,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | @@ -114,6 +116,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | ||
| 114 | GetPage Function(GetDelegate delegate)? emptyPage, | 116 | GetPage Function(GetDelegate delegate)? emptyPage, |
| 115 | required Iterable<GetPage> Function(RouteDecoder currentNavStack) pickPages, | 117 | required Iterable<GetPage> Function(RouteDecoder currentNavStack) pickPages, |
| 116 | bool Function(Route<dynamic>, dynamic)? onPopPage, | 118 | bool Function(Route<dynamic>, dynamic)? onPopPage, |
| 119 | + String? restorationScopeId, | ||
| 117 | GlobalKey<NavigatorState>? navigatorKey, | 120 | GlobalKey<NavigatorState>? navigatorKey, |
| 118 | GetDelegate? delegate, | 121 | GetDelegate? delegate, |
| 119 | }) : super( | 122 | }) : super( |
| @@ -125,6 +128,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | @@ -125,6 +128,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> { | ||
| 125 | 128 | ||
| 126 | if (pageRes.isNotEmpty) { | 129 | if (pageRes.isNotEmpty) { |
| 127 | return GetNavigator( | 130 | return GetNavigator( |
| 131 | + restorationScopeId: restorationScopeId, | ||
| 128 | onPopPage: onPopPage ?? | 132 | onPopPage: onPopPage ?? |
| 129 | (route, result) { | 133 | (route, result) { |
| 130 | final didPop = route.didPop(result); | 134 | final didPop = route.didPop(result); |
-
Please register or login to post a comment