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)),