This commit is contained in:
Hamza Aleghwairyeen
2024-04-09 03:56:07 +03:00
parent d68eb5028f
commit f8610862f9
7 changed files with 177 additions and 217 deletions

View File

@@ -48,16 +48,7 @@ class RatePassenger extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.all(4),
child: Text(
Get.find<MapDriverController>().carType ==
'Comfort' ||
Get.find<MapDriverController>()
.carType ==
'Free Ride'
? Get.find<MapDriverController>()
.price
.toStringAsFixed(1)
: Get.find<MapDriverController>()
.totalPassenger,
Get.find<MapDriverController>().paymentAmount,
style: AppStyle.number,
),
),

View File

@@ -436,6 +436,7 @@ class OrderSpeedRequest extends StatelessWidget {
title: 'Ok'.tr,
onPressed: () {
Get.back();
Get.back();
}));
},
kolor: AppColor.redColor,

View File

@@ -19,7 +19,7 @@ class RideBeginPassenger extends StatelessWidget {
@override
Widget build(BuildContext context) {
ProfileController profileController = Get.put(ProfileController());
AudioController audioController = Get.put(AudioController());
// AudioController audioController = Get.put(AudioController());
return GetBuilder<MapPassengerController>(builder: (controller) {
if (controller.rideTimerBegin ||
controller.statusRide == 'Begin' && !controller.statusRideFromStart) {
@@ -82,29 +82,29 @@ class RideBeginPassenger extends StatelessWidget {
),
tooltip: ' Add Note', // Optional tooltip for clarity
),
audioController.isRecording == false
? IconButton(
onPressed: () async {
await audioController.startRecording();
},
icon: const Icon(
Icons.play_circle_fill_outlined,
color: AppColor.greenColor,
),
tooltip:
' Add Note', // Optional tooltip for clarity
)
: IconButton(
onPressed: () async {
await audioController.stopRecording();
},
icon: const Icon(
Icons.stop_circle,
color: AppColor.greenColor,
),
tooltip:
' Add Note', // Optional tooltip for clarity
),
// audioController.isRecording == false
// ? IconButton(
// onPressed: () async {
// await audioController.startRecording();
// },
// icon: const Icon(
// Icons.play_circle_fill_outlined,
// color: AppColor.greenColor,
// ),
// tooltip:
// ' Add Note', // Optional tooltip for clarity
// )
// : IconButton(
// onPressed: () async {
// await audioController.stopRecording();
// },
// icon: const Icon(
// Icons.stop_circle,
// color: AppColor.greenColor,
// ),
// tooltip:
// ' Add Note', // Optional tooltip for clarity
// ),
],
),
Row(