Showing
1 changed file
with
5 additions
and
3 deletions
@@ -167,6 +167,8 @@ class GetObserver extends NavigatorObserver { | @@ -167,6 +167,8 @@ class GetObserver extends NavigatorObserver { | ||
167 | final newName = _extractRouteName(newRoute); | 167 | final newName = _extractRouteName(newRoute); |
168 | final oldName = _extractRouteName(oldRoute); | 168 | final oldName = _extractRouteName(oldRoute); |
169 | 169 | ||
170 | + final currentRoute = _RouteData.ofRoute(oldRoute); | ||
171 | + | ||
170 | Get.log("REPLACE ROUTE $oldName"); | 172 | Get.log("REPLACE ROUTE $oldName"); |
171 | Get.log("NEW ROUTE $newName"); | 173 | Get.log("NEW ROUTE $newName"); |
172 | 174 | ||
@@ -182,9 +184,9 @@ class GetObserver extends NavigatorObserver { | @@ -182,9 +184,9 @@ class GetObserver extends NavigatorObserver { | ||
182 | value.isBack = false; | 184 | value.isBack = false; |
183 | value.removed = ''; | 185 | value.removed = ''; |
184 | value.previous = '$oldName'; | 186 | value.previous = '$oldName'; |
185 | - value.isSnackbar = false; | ||
186 | - value.isBottomSheet = false; | ||
187 | - value.isDialog = false; | 187 | + value.isSnackbar = currentRoute.isSnackbar ? false : value.isSnackbar; |
188 | + value.isBottomSheet = currentRoute.isBottomSheet ? false : value.isBottomSheet; | ||
189 | + value.isDialog = currentRoute.isDialog ? false : value.isDialog; | ||
188 | }); | 190 | }); |
189 | 191 | ||
190 | routing?.call(_routeSend); | 192 | routing?.call(_routeSend); |
-
Please register or login to post a comment