Update: 2026-06-27 05:53:15

This commit is contained in:
Hamza-Ayed
2026-06-27 05:53:15 +03:00
parent 8efd4563db
commit 5fed555e44
4 changed files with 15 additions and 4 deletions

View File

@@ -288,10 +288,12 @@ class CRUD {
} }
} }
return 'token_expired'; return 'token_expired';
} else { } else if (response.statusCode >= 500) {
addError('Non-200: ${response.statusCode}', 'crud().get - Other', addError('Non-200: ${response.statusCode}', 'crud().get - Other',
url.toString()); url.toString());
return 'failure'; return 'failure';
} else {
return 'failure';
} }
} on TimeoutException { } on TimeoutException {
return 'failure'; return 'failure';
@@ -361,10 +363,12 @@ class CRUD {
addError('Unauthorized: ${jsonData['error']}', 'crud().getWallet - 401', addError('Unauthorized: ${jsonData['error']}', 'crud().getWallet - 401',
url.toString()); url.toString());
return 'failure'; return 'failure';
} else { } else if (response.statusCode >= 500) {
addError('Non-200: ${response.statusCode}', 'crud().getWallet - Other', addError('Non-200: ${response.statusCode}', 'crud().getWallet - Other',
url.toString()); url.toString());
return 'failure'; return 'failure';
} else {
return 'failure';
} }
} }

View File

@@ -169,6 +169,12 @@ void showUpdateDialog(BuildContext context) {
class DeviceHelper { class DeviceHelper {
static Future<String> getDeviceFingerprint() async { static Future<String> getDeviceFingerprint() async {
await EncryptionHelper.initialize(); await EncryptionHelper.initialize();
final cached = box.read(BoxName.deviceFingerprint);
if (cached != null && cached.toString().isNotEmpty) {
return cached.toString();
}
final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin(); final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
var deviceData; var deviceData;

View File

@@ -2860,7 +2860,7 @@ class MapDriverController extends GetxController
polyLines.removeWhere( polyLines.removeWhere(
(p) => p.polylineId.value.startsWith('passenger_walk_line')); (p) => p.polylineId.value.startsWith('passenger_walk_line'));
if (!isRideStarted && if (!isRideStarted && isArrivedSend &&
upcomingPathPoints.isNotEmpty && upcomingPathPoints.isNotEmpty &&
latLngPassengerLocation.latitude != 0) { latLngPassengerLocation.latitude != 0) {
final LatLng lastRoadPt = upcomingPathPoints.last; final LatLng lastRoadPt = upcomingPathPoints.last;

View File

@@ -69,6 +69,7 @@ class GoogleDriverMap extends StatelessWidget {
icon: controller.startIcon, icon: controller.startIcon,
), ),
if (!controller.isRideStarted && if (!controller.isRideStarted &&
controller.isArrivedSend &&
controller.upcomingPathPoints.isNotEmpty && controller.upcomingPathPoints.isNotEmpty &&
controller.walkIcon != null) controller.walkIcon != null)
Marker( Marker(