Showing
1 changed file
with
1 additions
and
1 deletions
@@ -976,7 +976,7 @@ extension GetNavigation on GetInterface { | @@ -976,7 +976,7 @@ extension GetNavigation on GetInterface { | ||
976 | _key = keys[k]; | 976 | _key = keys[k]; |
977 | } | 977 | } |
978 | 978 | ||
979 | - if (_key.currentContext == null) { | 979 | + if (_key.currentContext == null && !testMode) { |
980 | throw """You are trying to use contextless navigation without | 980 | throw """You are trying to use contextless navigation without |
981 | a GetMaterialApp or Get.key. | 981 | a GetMaterialApp or Get.key. |
982 | If you are testing your app, you can use: | 982 | If you are testing your app, you can use: |
-
Please register or login to post a comment