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

View File

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

View File

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

View File

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