This commit is contained in:
Hamza-Ayed
2024-02-06 01:35:24 +03:00
parent f9ed0893bc
commit a34c2d9eda
3 changed files with 46 additions and 13 deletions

View File

@@ -85,7 +85,13 @@ GetBuilder<MapPassengerController> cancelRidePage() {
MyElevatedButton(
title: 'Cancel Ride'.tr,
onPressed: () {
controller.cancelRide();
if (controller.selectedReason == -1) {
Get.snackbar('You Should be select reason.'.tr, '',
snackPosition: SnackPosition.BOTTOM,
backgroundColor: AppColor.redColor);
} else {
controller.cancelRide();
}
},
),
],