From d7ff309c09c0c28c0b5b26c435837678563a2b3a Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Sun, 3 Mar 2024 18:38:22 +0530 Subject: [PATCH] disabled auto popup for cp zero --- lib/pages/destination/destination_controller.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/destination/destination_controller.dart b/lib/pages/destination/destination_controller.dart index 87c440f..81ca569 100644 --- a/lib/pages/destination/destination_controller.dart +++ b/lib/pages/destination/destination_controller.dart @@ -208,6 +208,7 @@ class DestinationController extends GetxController { isAtStart.value = true; if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.85)), @@ -230,6 +231,7 @@ class DestinationController extends GetxController { isInCheckin.value = true; if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.75)), @@ -277,6 +279,7 @@ class DestinationController extends GetxController { // print("--- calling checkin ---"); if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.75)), @@ -298,6 +301,7 @@ class DestinationController extends GetxController { isInCheckin.value = true; if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showMaterialModalBottomSheet( expand: true, context: Get.context!, @@ -327,6 +331,7 @@ class DestinationController extends GetxController { //print("--- open buy point $buyPointImageAdded ${d.buypoint_image} ----"); if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.75)), @@ -365,6 +370,7 @@ class DestinationController extends GetxController { photos.clear(); if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.75)), @@ -389,6 +395,7 @@ class DestinationController extends GetxController { isAtStart.value = true; if (shouldShowBottomSheet) { shouldShowBottomSheet = false; + if (d.cp == 0) return; await showModalBottomSheet( constraints: BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),