Update: 2026-06-26 01:43:37

This commit is contained in:
Hamza-Ayed
2026-06-26 01:43:37 +03:00
parent 3002dbd517
commit bd3ba7ecd7
22 changed files with 227 additions and 183 deletions

View File

@@ -172,7 +172,7 @@ class ReviewDriverController extends GetxController {
_populateDocUrls(raw['documents']);
}
} catch (e) {
mySnackeBarError('Failed to load data: $e');
mySnackbarError('Failed to load data: $e');
} finally {
isLoading.value = false;
}
@@ -315,10 +315,10 @@ class ReviewDriverController extends GetxController {
if (response != 'failure' && response['status'] == 'success') {
mySnackbarSuccess('Data saved successfully');
} else {
mySnackeBarError('Failed to save changes');
mySnackbarError('Failed to save changes');
}
} catch (e) {
mySnackeBarError('Error: $e');
mySnackbarError('Error: $e');
} finally {
isSaving.value = false;
}
@@ -337,10 +337,10 @@ class ReviewDriverController extends GetxController {
await Future.delayed(const Duration(milliseconds: 500));
Get.back();
} else {
mySnackeBarError('Failed to activate driver');
mySnackbarError('Failed to activate driver');
}
} catch (e) {
mySnackeBarError('Error: $e');
mySnackbarError('Error: $e');
} finally {
isSaving.value = false;
}
@@ -348,7 +348,7 @@ class ReviewDriverController extends GetxController {
Future<void> rejectDriver(String reason) async {
if (reason.trim().isEmpty) {
mySnackeBarError('Please enter a rejection reason');
mySnackbarError('Please enter a rejection reason');
return;
}
isSaving.value = true;
@@ -365,10 +365,10 @@ class ReviewDriverController extends GetxController {
await Future.delayed(const Duration(milliseconds: 500));
Get.back();
} else {
mySnackeBarError('Failed to reject driver');
mySnackbarError('Failed to reject driver');
}
} catch (e) {
mySnackeBarError('Error: $e');
mySnackbarError('Error: $e');
} finally {
isSaving.value = false;
}