TF-2046 Change navigate to page use popAndPushNamed instead of using pushReplacementNamed

(cherry picked from commit 8e8beccc25e7a6bd3199363cebc36efb74854740)
This commit is contained in:
dab246
2023-07-20 15:49:26 +07:00
committed by Dat Vu
parent aa0433aab9
commit 036d0db4ce
7 changed files with 14 additions and 10 deletions
+4
View File
@@ -10,6 +10,10 @@ Future<dynamic> pushAndPop(String routeName, {dynamic arguments}) async {
return Get.offNamed(routeName, arguments: arguments);
}
Future<dynamic> popAndPush(String routeName, {dynamic arguments}) async {
return Get.offAndToNamed(routeName, arguments: arguments);
}
Future<dynamic> pushAndPopAll(String routeName, {dynamic arguments}) async {
return Get.offAllNamed(routeName, arguments: arguments);
}