Update codebase
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
import 'package:tripz_rider/services/geofencing_service.dart';
|
||||
import 'package:siro_rider/services/geofencing_service.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -20,7 +20,7 @@ class GeoLocation {
|
||||
// Prominent Disclosure for Background Location
|
||||
bool? userAgreed = await Get.defaultDialog<bool>(
|
||||
title: 'صلاحية الموقع'.tr,
|
||||
middleText: 'يجمع تطبيق تريبز بيانات الموقع لتفعيل ميزة التتبع الجغرافي (Geofence) ولتمكين السائق من الوصول إليك بدقة وتتبع رحلتك حتى عندما يكون التطبيق في الخلفية أو مغلقاً.'.tr,
|
||||
middleText: 'يجمع تطبيق سيرو بيانات الموقع لتفعيل ميزة التتبع الجغرافي (Geofence) ولتمكين السائق من الوصول إليك بدقة وتتبع رحلتك حتى عندما يكون التطبيق في الخلفية أو مغلقاً.'.tr,
|
||||
titleStyle: const TextStyle(fontWeight: FontWeight.bold),
|
||||
textConfirm: 'موافق'.tr,
|
||||
textCancel: 'إلغاء'.tr,
|
||||
@@ -53,7 +53,7 @@ class GeoLocation {
|
||||
|
||||
// Update Geofences based on the fresh location
|
||||
try {
|
||||
TripzGeofencingService.syncZonesWithServer(position.latitude, position.longitude);
|
||||
SiroGeofencingService.syncZonesWithServer(position.latitude, position.longitude);
|
||||
} catch (e) {
|
||||
// Ignore errors so it doesn't break the main location flow
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user