fixed position error and added goad condition button
This commit is contained in:
@ -129,7 +129,7 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
style: ElevatedButton.styleFrom(backgroundColor: Colors.red),
|
||||
onPressed: destinationController.rogainingCounted.value == true &&
|
||||
destinationController.distanceToStart() <= 500 &&
|
||||
//destination.cp == -1 &&
|
||||
destination.cp == -1 &&
|
||||
DestinationController.ready_for_goal == true
|
||||
? () async {
|
||||
destinationController.isAtGoal.value = true;
|
||||
|
||||
@ -176,7 +176,7 @@ class _MapWidgetState extends State<MapWidget> {
|
||||
}
|
||||
|
||||
void _centerMapOnUser() {
|
||||
print("showBottomSheet ${destinationController.shouldShowBottomSheet}");
|
||||
//print("showBottomSheet ${destinationController.shouldShowBottomSheet}");
|
||||
if (destinationController.shouldShowBottomSheet) {
|
||||
destinationController.centerMapToCurrentLocation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user