4/11/6
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user