Update: 2026-06-26 17:29:23

This commit is contained in:
Hamza-Ayed
2026-06-26 17:29:23 +03:00
parent a323da29aa
commit 9ded734e38
139 changed files with 1815 additions and 2676 deletions

View File

@@ -1,10 +1,9 @@
import 'dart:convert';
import 'package:get/get.dart';
import 'package:siro_admin/constant/colors.dart';
import '../../constant/links.dart';
import '../firebase/firbase_messge.dart';
import '../../views/widgets/snackbar.dart';
import 'crud.dart';
class WalletController extends GetxController {
@@ -35,11 +34,9 @@ class WalletController extends GetxController {
// token, // Access token correctly
// 'ding.wav',
// );
Get.snackbar('success', 'addPaymentToDriver',
backgroundColor: AppColor.greenColor);
mySnackbarSuccess('addPaymentToDriver');
} else {
Get.snackbar('error', 'addPaymentToDriver',
backgroundColor: AppColor.redColor);
mySnackbarError('addPaymentToDriver');
}
}
@@ -68,10 +65,9 @@ class WalletController extends GetxController {
'phone': phone,
});
if (res != 'failure') {
Get.snackbar('success', 'addDrivergift300',
backgroundColor: AppColor.greenColor);
mySnackbarSuccess('addDrivergift300');
} else {
Get.snackbar('error', res, backgroundColor: AppColor.redColor);
mySnackbarError(res);
}
}
@@ -86,11 +82,9 @@ class WalletController extends GetxController {
'driverId': driverID.toString(),
});
if (res != 'failure') {
Get.snackbar('success', 'addSeferWallet',
backgroundColor: AppColor.greenColor);
mySnackbarSuccess('addSeferWallet');
} else {
Get.snackbar('error', 'addSeferWallet',
backgroundColor: AppColor.redColor);
mySnackbarError('addSeferWallet');
}
}
}