This commit is contained in:
Hamza-Ayed
2024-02-11 00:24:07 +03:00
parent 8c99fc94e2
commit 7c627d5182
6 changed files with 201 additions and 104 deletions

View File

@@ -90,7 +90,8 @@ GetBuilder<MapPassengerController> leftMainMenuIcons() {
borderRadius: BorderRadius.circular(15)),
child: IconButton(
onPressed: () {
textToSpeechController.speakText('''hello this is hamza''');
textToSpeechController.speakText(
'''hello this is ${box.read(BoxName.name)}''');
},
icon: const Icon(
Icons.voice_chat,

View File

@@ -72,7 +72,7 @@ class TimerToPassengerFromDriver extends StatelessWidget {
// 'rideTimeStart': DateTime.now().toString(),
// 'status': 'Applied'
// });
controller
await controller
.calculateDistanceBetweenPassengerAndDriverBeforecancelRide();
})
: const SizedBox()