4/9/1
This commit is contained in:
@@ -33,8 +33,8 @@ List<CarType> carTypes = [
|
||||
carDetail: 'Delivery service'.tr,
|
||||
image: 'assets/images/moto.png'),
|
||||
CarType(
|
||||
carType: 'Free Ride',
|
||||
carDetail: 'free ride without end point'.tr,
|
||||
carType: 'Mashwari',
|
||||
carDetail: 'Mashwari without end point'.tr,
|
||||
image: 'assets/images/freeRide.png'),
|
||||
];
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@ class RideBeginPassenger extends StatelessWidget {
|
||||
),
|
||||
audioController.isRecording == false
|
||||
? IconButton(
|
||||
onPressed: () {
|
||||
audioController.startRecording();
|
||||
onPressed: () async {
|
||||
await audioController.startRecording();
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.play_circle_fill_outlined,
|
||||
@@ -95,8 +95,8 @@ class RideBeginPassenger extends StatelessWidget {
|
||||
' Add Note', // Optional tooltip for clarity
|
||||
)
|
||||
: IconButton(
|
||||
onPressed: () {
|
||||
audioController.stopRecording();
|
||||
onPressed: () async {
|
||||
await audioController.stopRecording();
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.stop_circle,
|
||||
|
||||
Reference in New Issue
Block a user