Fix 2803,2802,2800

This commit is contained in:
2024-04-03 21:39:12 +09:00
parent 7e6b5f887a
commit accd0cad43
5 changed files with 94 additions and 6 deletions

View File

@ -561,7 +561,14 @@ class DestinationController extends GetxController {
}
});
} else {
Get.snackbar("始まっていない", "ロゲイニングを始める必要があります");
Get.snackbar(
"始まっていません",
"ロゲ開始ボタンをタップして、ロゲイニングを始める必要があります",
icon: const Icon(Icons.assistant_photo_outlined, size: 40.0, color: Colors.blue),
snackPosition: SnackPosition.TOP,
duration: const Duration(seconds: 3),
backgroundColor: Colors.yellow,
);
}
}
}
@ -931,7 +938,11 @@ class DestinationController extends GetxController {
}
void centerMapToCurrentLocation() {
assert(() {
print("center is ${currentLon}, ${currentLon}");
return true;
}());
// Akira
if (currentLat != 0 || currentLon != 0) {
indexController.mapController.move(LatLng(currentLat, currentLon), 17.0);
}