diff --git a/lib/controller/local/translations.dart b/lib/controller/local/translations.dart index 1309792..19ad2e7 100644 --- a/lib/controller/local/translations.dart +++ b/lib/controller/local/translations.dart @@ -433,6 +433,10 @@ class MyTranslation extends Translations { "إذا كنت تحتاج أي مساعدة أو لديك أسئلة هذه الصفحة المكان المناسب لذلك وأهلاً بك", 'Enter your Question here': "أدخل سؤالك هنا", 'Question': "السؤال", + 'Your trip cost is': 'تبلغ تكلفة رحلتك', + 'But you have a negative balance of': 'ولكن لديك رصيد سلبي قدره', + ' in your': 'في محفظتك', + ' wallet due to a previous trip.': 'بسبب رحلة سابقة', 'Submit Question': "طرح السؤال", 'Please enter your Question.': "الرجاء إدخال سؤالك.", 'Help Details': "تفاصيل المساعدة", 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 02de517..74f9e29 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 @@ -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, + ), + ], ), ), ),