disabled auto popup for cp zero
This commit is contained in:
@ -208,6 +208,7 @@ class DestinationController extends GetxController {
|
|||||||
isAtStart.value = true;
|
isAtStart.value = true;
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.85)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.85)),
|
||||||
@ -230,6 +231,7 @@ class DestinationController extends GetxController {
|
|||||||
isInCheckin.value = true;
|
isInCheckin.value = true;
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||||
@ -277,6 +279,7 @@ class DestinationController extends GetxController {
|
|||||||
// print("--- calling checkin ---");
|
// print("--- calling checkin ---");
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||||
@ -298,6 +301,7 @@ class DestinationController extends GetxController {
|
|||||||
isInCheckin.value = true;
|
isInCheckin.value = true;
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showMaterialModalBottomSheet(
|
await showMaterialModalBottomSheet(
|
||||||
expand: true,
|
expand: true,
|
||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
@ -327,6 +331,7 @@ class DestinationController extends GetxController {
|
|||||||
//print("--- open buy point $buyPointImageAdded ${d.buypoint_image} ----");
|
//print("--- open buy point $buyPointImageAdded ${d.buypoint_image} ----");
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||||
@ -365,6 +370,7 @@ class DestinationController extends GetxController {
|
|||||||
photos.clear();
|
photos.clear();
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||||
@ -389,6 +395,7 @@ class DestinationController extends GetxController {
|
|||||||
isAtStart.value = true;
|
isAtStart.value = true;
|
||||||
if (shouldShowBottomSheet) {
|
if (shouldShowBottomSheet) {
|
||||||
shouldShowBottomSheet = false;
|
shouldShowBottomSheet = false;
|
||||||
|
if (d.cp == 0) return;
|
||||||
await showModalBottomSheet(
|
await showModalBottomSheet(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
BoxConstraints.loose(Size(Get.width, Get.height * 0.75)),
|
||||||
|
|||||||
Reference in New Issue
Block a user