feat: add service area restriction overlay and bump version to 1.0.3+8

This commit is contained in:
Hamza-Ayed
2026-08-11 00:14:03 +03:00
parent e52afa1863
commit bb9517826e
10 changed files with 128 additions and 55 deletions
@@ -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(