feat: add service area restriction overlay and bump version to 1.0.3+8
This commit is contained in:
@@ -737,7 +737,13 @@ class HomeCaptainController extends GetxController {
|
||||
|
||||
if (locData != null && locData.latitude != null) {
|
||||
final rawPos = LatLng(locData.latitude!, locData.longitude!);
|
||||
if (!CountryPolygons.isServiceSupported(rawPos)) {
|
||||
bool isOutside = !CountryPolygons.isServiceSupported(rawPos);
|
||||
if (locationController.isOutsideServiceArea != isOutside) {
|
||||
locationController.isOutsideServiceArea = isOutside;
|
||||
locationController.update(); // Make sure the UI overlay updates
|
||||
}
|
||||
|
||||
if (isOutside) {
|
||||
myLocation = const LatLng(31.9539, 35.9106);
|
||||
if (!Get.isSnackbarOpen) {
|
||||
Get.snackbar(
|
||||
|
||||
Reference in New Issue
Block a user