This commit is contained in:
Hamza Aleghwairyeen
2024-04-12 17:31:21 +03:00
parent 2f50b59ea7
commit 59a7af65d7
2 changed files with 35 additions and 13 deletions

View File

@@ -398,21 +398,39 @@ class Burc extends StatelessWidget {
color: AppColor.redColor.withOpacity(.5),
),
height: 50,
width: Get.width * .94,
width: Get.width,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Text(
'Your trip cost is'.tr +
' ${mapPassengerController.totalCostPassenger.toStringAsFixed(2)} '
'But you have a negative balance of'
.tr +
'${passengerWallet.toStringAsFixed(2)}'
' in your'
.tr +
' ${AppInformation.appName}'
' wallet due to a previous trip.'
.tr,
style: AppStyle.subtitle,
child: Row(
children: [
IconButton(
onPressed: () async => await Get.find<
TextToSpeechController>()
.speakText('Your trip cost is'.tr +
' ${mapPassengerController.totalCostPassenger.toStringAsFixed(2)} '
'But you have a negative balance of'
.tr +
'${passengerWallet.toStringAsFixed(2)}'
' in your'
.tr +
' ${AppInformation.appName}'
' wallet due to a previous trip.'
.tr),
icon: const Icon(Icons.headphones)),
Text(
'Your trip cost is'.tr +
' ${mapPassengerController.totalCostPassenger.toStringAsFixed(2)} '
'But you have a negative balance of'
.tr +
'${passengerWallet.toStringAsFixed(2)}'
' in your'
.tr +
' ${AppInformation.appName}'
' wallet due to a previous trip.'
.tr,
style: AppStyle.subtitle,
),
],
),
),
),