Remove last page routes in flutter

 If you want to remove the last page then use it.

Get.off(Login())
 If you want to remove the all previous page then use it.
    Get.reset();
Get.offAndToNamed(Login());
Get.offAll(Login())

Comments

Popular posts from this blog

Your build is currently configured to use incompatible Java 21.0.3 and Gradle 8.2.1. Cannot sync the project.

Google Assistant Implementation in Android application with app actions