Update: 2026-06-26 01:43:37
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user