update popup conditions
This commit is contained in:
@ -136,7 +136,9 @@ class CameraPage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (destinationController.isAtGoal.value &&
|
if (destinationController.isAtGoal.value &&
|
||||||
destinationController.isInRog.value) {
|
destinationController.isInRog.value &&
|
||||||
|
destination.cp == -1) {
|
||||||
|
//goal
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: [
|
children: [
|
||||||
@ -210,6 +212,7 @@ class CameraPage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
} else if (destinationController.isInRog.value &&
|
} else if (destinationController.isInRog.value &&
|
||||||
dbDest?.checkedin != null &&
|
dbDest?.checkedin != null &&
|
||||||
|
destination.cp != -1 &&
|
||||||
dbDest?.checkedin == true) {
|
dbDest?.checkedin == true) {
|
||||||
//make buypoint image
|
//make buypoint image
|
||||||
return Row(
|
return Row(
|
||||||
|
|||||||
@ -227,7 +227,9 @@ class DestinationController extends GetxController {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else if (isInRog.value == true && indexController.rogMode.value == 1) {
|
} else if (isInRog.value == true &&
|
||||||
|
indexController.rogMode.value == 1 &&
|
||||||
|
d.cp != -1) {
|
||||||
// print("----- in location popup checkin cp - ${d.cp}----");
|
// print("----- in location popup checkin cp - ${d.cp}----");
|
||||||
chekcs = 2;
|
chekcs = 2;
|
||||||
isInCheckin.value = true;
|
isInCheckin.value = true;
|
||||||
|
|||||||
@ -205,12 +205,11 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
barrierDismissible:
|
barrierDismissible:
|
||||||
false, // User must tap a button to close the dialog
|
false, // User must tap a button to close the dialog
|
||||||
);
|
);
|
||||||
} else if (destinationController.isInRog.value == true) {
|
} else if (destinationController.isInRog.value == true &&
|
||||||
|
destination.cp != -1) {
|
||||||
//print("counted ${destinationController.rogainingCounted.value}");
|
//print("counted ${destinationController.rogainingCounted.value}");
|
||||||
// Existing logic for other conditions
|
// Existing logic for other conditions
|
||||||
if (destination.cp == -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Get.back();
|
Get.back();
|
||||||
await destinationController.callforCheckin(destination);
|
await destinationController.callforCheckin(destination);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user