4/11/6
This commit is contained in:
@@ -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