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