Get.offAllNamed() removes all the previous routes and goes to the new routes. But if you want better control, then you should be using Get.offNamedUntil. By using Get.offNamedUntil() you can control upto which routes to remove from the stack.
void navigateToHome(){
Get.offNamedUntil(AppIntroductionScreen.routeName, (route) => false);
}
See the above code, it will take you to a new route name AppIntroductionScreen. OffNamedUntil will remove all the routes from the stack until it finds AppIntroductionScreen.
Once it finds AppIntroductionScreen, it will stop removing routes from the stack.
Complete GetX App