Update: 2026-08-01 05:29:35

This commit is contained in:
Hamza-Ayed
2026-08-01 05:29:35 +03:00
parent 782138ef7b
commit 84c725040f
8 changed files with 40 additions and 28 deletions
@@ -45,7 +45,7 @@ class DestinationController extends GetxController {
if (response != null && response is Map && response['status'] == 'success') {
final data = response['message'];
if (data != null) {
if (data != null && data is Map) {
final lat = double.tryParse(data['target_latitude']?.toString() ?? '0') ?? 0.0;
final lng = double.tryParse(data['target_longitude']?.toString() ?? '0') ?? 0.0;
activeLatLng = LatLng(lat, lng);
@@ -939,7 +939,7 @@ class HomeCaptainController extends GetxController {
bool isZeroCommissionActive = false;
getCountRideToday() async {
var res = await CRUD().get(
var res = await CRUD().getWallet(
link: AppLink.getCountRide,
payload: {'driver_id': box.read(BoxName.driverID).toString()});
data = jsonDecode(res);