From d0273d47d47508a99d1a088b5090ad3db2694f7b Mon Sep 17 00:00:00 2001 From: Hamza Aleghwairyeen Date: Fri, 12 Apr 2024 17:37:35 +0300 Subject: [PATCH] 4/12/5 --- lib/controller/local/translations.dart | 2 +- .../map_widget.dart/car_details_widget_to_go.dart | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/controller/local/translations.dart b/lib/controller/local/translations.dart index 19ad2e7..39ce329 100644 --- a/lib/controller/local/translations.dart +++ b/lib/controller/local/translations.dart @@ -434,7 +434,7 @@ class MyTranslation extends Translations { 'Enter your Question here': "أدخل سؤالك هنا", 'Question': "السؤال", 'Your trip cost is': 'تبلغ تكلفة رحلتك', - 'But you have a negative balance of': 'ولكن لديك رصيد سلبي قدره', + 'you have a negative balance of': 'ولكن لديك رصيد سلبي قدره', ' in your': 'في محفظتك', ' wallet due to a previous trip.': 'بسبب رحلة سابقة', 'Submit Question': "طرح السؤال", diff --git a/lib/views/home/map_widget.dart/car_details_widget_to_go.dart b/lib/views/home/map_widget.dart/car_details_widget_to_go.dart index 74f9e29..5c4c32c 100644 --- a/lib/views/home/map_widget.dart/car_details_widget_to_go.dart +++ b/lib/views/home/map_widget.dart/car_details_widget_to_go.dart @@ -402,13 +402,12 @@ class Burc extends StatelessWidget { child: Padding( padding: const EdgeInsets.symmetric(horizontal: 8), child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, 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' + .speakText('you have a negative balance of' .tr + '${passengerWallet.toStringAsFixed(2)}' ' in your' @@ -418,16 +417,14 @@ class Burc extends StatelessWidget { .tr), icon: const Icon(Icons.headphones)), Text( - 'Your trip cost is'.tr + - ' ${mapPassengerController.totalCostPassenger.toStringAsFixed(2)} ' - 'But you have a negative balance of' - .tr + + 'you have a negative balance of'.tr + '${passengerWallet.toStringAsFixed(2)}' ' in your' .tr + ' ${AppInformation.appName}' ' wallet due to a previous trip.' .tr, + textAlign: TextAlign.center, style: AppStyle.subtitle, ), ],