update goal issue

This commit is contained in:
2023-11-20 22:49:54 +05:30
parent 4648b0424d
commit 3abd306e89
2 changed files with 28 additions and 6 deletions

View File

@ -481,10 +481,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
// : Container(),
// ),
Obx(
() => destinationController.isAtGoal.value == true &&
destinationController
.rogainingCounted.value ==
true
() => destinationController.rogainingCounted.value ==
true &&
destination.cp == -1 &&
destinationController.distanceToStart() <= 500
? ElevatedButton(
onPressed: () {
Get.toNamed(AppPages.CAMERA_PAGE);
@ -553,8 +553,12 @@ class BottomSheetNew extends GetView<BottomSheetController> {
// forced start / checkin
distanceToDest <=
destinationController
.getForcedChckinDistance(destination)
destinationController
.getForcedChckinDistance(destination) &&
destinationController.isInCheckin.value ==
true &&
destinationController.rogainingCounted.value ==
false
? ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context)