This commit is contained in:
Hamza Aleghwairyeen
2024-04-12 00:52:03 +03:00
parent 0d0eaa6268
commit 0e91e389e5
6 changed files with 132 additions and 59 deletions

View File

@@ -449,7 +449,7 @@ class MapDriverController extends GetxController {
? totalPassenger
: price < double.parse(totalPassenger)
? totalPassenger
: price.toStringAsFixed(1);
: price.toStringAsFixed(2);
paymentAmount = totalCost;
box.write(BoxName.statusDriverLocation, 'off');
// changeRideToBeginToPassenger();

View File

@@ -833,6 +833,25 @@ class MapPassengerController extends GetxController {
update();
}
void getDialog(String title, midTitle, VoidCallback onPressed) {
Get.defaultDialog(
title: title,
titleStyle: AppStyle.title,
middleTextStyle: AppStyle.title,
content: IconButton(
onPressed: () async {
await textToSpeechController.speakText(midTitle);
},
icon: const Icon(Icons.headphones)),
middleText: midTitle,
confirm: MyElevatedButton(title: 'Ok'.tr, onPressed: onPressed),
cancel: MyElevatedButton(
title: 'Cancel',
onPressed: () {
Get.back();
}));
}
int currentTimeSearchingCaptainWindow = 0;
late String driverPhone = '';
late String driverRate = '';