From 1dcfe44e969014aae019024d9008600bb68f64e7 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 18 Oct 2021 18:02:49 +0300 Subject: [PATCH] Translations --- lib/config/localized_values.dart | 3 ++- lib/pages/ToDoList/payment_method_select.dart | 18 +++++++++--------- lib/uitl/translations_delegate_base.dart | 2 ++ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 9f161f25..f69c3f68 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1560,5 +1560,6 @@ const Map localizedValues = { "Latest": {"en": "Latest", "ar": "أحدث"}, "Tour": {"en": "Tour", "ar": "رحلة"}, "mostViewed": {"en": "Most Viewed", "ar": "الأكثر مشاهدة"}, - "newProducts": {"en": "New Products", "ar": "منتجات جديدة"} + "newProducts": {"en": "New Products", "ar": "منتجات جديدة"}, + "paymentSelected": {"en": "Selected", "ar": "المحدد"}, }; diff --git a/lib/pages/ToDoList/payment_method_select.dart b/lib/pages/ToDoList/payment_method_select.dart index 992fb18b..5f9532e1 100644 --- a/lib/pages/ToDoList/payment_method_select.dart +++ b/lib/pages/ToDoList/payment_method_select.dart @@ -85,7 +85,7 @@ class _PaymentMethodState extends State { decoration: containerRadius(CustomColors.green, 200), padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12), child: Text( - "Selected", + TranslationBase.of(context).paymentSelected, style: TextStyle( color: Colors.white, fontSize: 11, @@ -110,7 +110,7 @@ class _PaymentMethodState extends State { color: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), - side: selectedPaymentMethod == "VISA" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), + side: selectedPaymentMethod == "VISA" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0), ), child: Padding( padding: const EdgeInsets.all(12.0), @@ -142,7 +142,7 @@ class _PaymentMethodState extends State { decoration: containerRadius(CustomColors.green, 200), padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12), child: Text( - "Selected", + TranslationBase.of(context).paymentSelected, style: TextStyle( color: Colors.white, fontSize: 11, @@ -167,7 +167,7 @@ class _PaymentMethodState extends State { color: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), - side: selectedPaymentMethod == "MASTERCARD" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), + side: selectedPaymentMethod == "MASTERCARD" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0), ), child: Padding( padding: const EdgeInsets.all(12.0), @@ -199,7 +199,7 @@ class _PaymentMethodState extends State { decoration: containerRadius(CustomColors.green, 200), padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12), child: Text( - "Selected", + TranslationBase.of(context).paymentSelected, style: TextStyle( color: Colors.white, fontSize: 11, @@ -224,7 +224,7 @@ class _PaymentMethodState extends State { color: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), - side: selectedPaymentMethod == "Installment" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), + side: selectedPaymentMethod == "Installment" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0), ), child: Padding( padding: const EdgeInsets.all(12.0), @@ -256,7 +256,7 @@ class _PaymentMethodState extends State { decoration: containerRadius(CustomColors.green, 200), padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12), child: Text( - "Selected", + TranslationBase.of(context).paymentSelected, style: TextStyle( color: Colors.white, fontSize: 11, @@ -282,7 +282,7 @@ class _PaymentMethodState extends State { color: Colors.white, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), - side: selectedPaymentMethod == "ApplePay" ? BorderSide(color: Colors.green, width: 5.0) : BorderSide(color: Colors.transparent, width: 0.0), + side: selectedPaymentMethod == "ApplePay" ? BorderSide(color: Colors.green, width: 2.0) : BorderSide(color: Colors.transparent, width: 0.0), ), child: Padding( padding: const EdgeInsets.all(12.0), @@ -314,7 +314,7 @@ class _PaymentMethodState extends State { decoration: containerRadius(CustomColors.green, 200), padding: EdgeInsets.only(top: 6, bottom: 6, left: 12, right: 12), child: Text( - "Selected", + TranslationBase.of(context).paymentSelected, style: TextStyle( color: Colors.white, fontSize: 11, diff --git a/lib/uitl/translations_delegate_base.dart b/lib/uitl/translations_delegate_base.dart index ff899765..76c09e00 100644 --- a/lib/uitl/translations_delegate_base.dart +++ b/lib/uitl/translations_delegate_base.dart @@ -2478,6 +2478,8 @@ class TranslationBase { String get mostViewed => localizedValues["mostViewed"][locale.languageCode]; String get newProducts => localizedValues["newProducts"][locale.languageCode]; + String get paymentSelected => localizedValues["paymentSelected"][locale.languageCode]; + } class TranslationBaseDelegate extends LocalizationsDelegate {