update goal condition for more that 1000 m away

This commit is contained in:
2024-01-18 19:58:00 +05:30
parent 2fb095bd50
commit b9e4df069f
3 changed files with 11 additions and 1 deletions

View File

@ -508,7 +508,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
destinationController.rogainingCounted.value == true &&
destinationController.distanceToStart() <=
500 &&
destination.cp == -1
destination.cp == -1 &&
DestinationController.ready_for_goal == true
? ElevatedButton(
onPressed: () async {
destinationController.isAtGoal.value = true;