6/25/1
This commit is contained in:
@@ -840,7 +840,8 @@ class MapPassengerController extends GetxController {
|
||||
update();
|
||||
}
|
||||
|
||||
void getDialog(String title, midTitle, VoidCallback onPressed) {
|
||||
void getDialog(String title, String? midTitle, VoidCallback onPressed) {
|
||||
final textToSpeechController = Get.find<TextToSpeechController>();
|
||||
Get.defaultDialog(
|
||||
title: title,
|
||||
titleStyle: AppStyle.title,
|
||||
@@ -849,13 +850,11 @@ class MapPassengerController extends GetxController {
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
final textToSpeechController =
|
||||
Get.find<TextToSpeechController>();
|
||||
await textToSpeechController.speakText(midTitle);
|
||||
await textToSpeechController.speakText(title ?? midTitle!);
|
||||
},
|
||||
icon: const Icon(Icons.headphones)),
|
||||
Text(
|
||||
midTitle,
|
||||
midTitle!,
|
||||
style: AppStyle.title,
|
||||
)
|
||||
],
|
||||
@@ -867,6 +866,7 @@ class MapPassengerController extends GetxController {
|
||||
),
|
||||
cancel: MyElevatedButton(
|
||||
title: 'Cancel',
|
||||
kolor: AppColor.redColor,
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user