25-1/25/1-secure and links

This commit is contained in:
Hamza-Ayed
2025-01-25 00:02:17 +03:00
parent 92861a8fc0
commit 46709df1e6
17 changed files with 295 additions and 113 deletions

View File

@@ -11,6 +11,7 @@ import '../../print.dart';
import '../home/captin/home_captain_controller.dart';
import '../home/payment/captain_wallet_controller.dart';
import 'crud.dart';
import 'encrypt_decrypt.dart';
class LocationController extends GetxController {
LocationData? _currentLocation;
@@ -89,7 +90,8 @@ class LocationController extends GetxController {
latitude <= maxLatitude &&
longitude >= minLongitude &&
longitude <= maxLongitude) {
box.write(BoxName.serverChosen, locationData['server_link']);
box.write(BoxName.serverChosen,
encryptionHelper.decryptData(locationData['server_link']));
// Log.print(
// 'locationData----server_link: ${locationData['server_link']}');
return locationData['name'];