This commit is contained in:
Hamza Aleghwairyeen
2024-04-09 04:53:20 +03:00
parent f8610862f9
commit 56c0b7fd1d
9 changed files with 239 additions and 192 deletions

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(