Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -51,7 +51,7 @@ Get.off(NextScreen()); | @@ -51,7 +51,7 @@ Get.off(NextScreen()); | ||
| 51 | To go to the next screen and cancel all previous routes (useful in shopping carts, polls, and tests) | 51 | To go to the next screen and cancel all previous routes (useful in shopping carts, polls, and tests) | 
| 52 | 52 | ||
| 53 | ```dart | 53 | ```dart | 
| 54 | -Get.offAll(NextScreen()); | 54 | +Get.offAll(NextScreen(), (Route<dynamic> route) => false)); | 
| 55 | ``` | 55 | ``` | 
| 56 | 56 | ||
| 57 | ### That's it, you've learned how to navigate between routes the default way. | 57 | ### That's it, you've learned how to navigate between routes the default way. | 
| @@ -72,7 +72,7 @@ Get.offNamed("/NextScreen"); | @@ -72,7 +72,7 @@ Get.offNamed("/NextScreen"); | ||
| 72 | ``` | 72 | ``` | 
| 73 | To navigate and remove all previous screens from the tree. | 73 | To navigate and remove all previous screens from the tree. | 
| 74 | ```dart | 74 | ```dart | 
| 75 | -Get.offAllNamed("/NextScreen"); | 75 | +Get.offAllNamed("/NextScreen", (Route<dynamic> route) => false)); | 
| 76 | ``` | 76 | ``` | 
| 77 | 77 | ||
| 78 | ## Using with Named Routes and And offering full flutter_web support (REQUIRED FOR NAMED ROUTES): | 78 | ## Using with Named Routes and And offering full flutter_web support (REQUIRED FOR NAMED ROUTES): | 
- 
Please register or login to post a comment