From 4f817810c2c28b25322e20888027922d91fb835e Mon Sep 17 00:00:00 2001 From: mosazaid Date: Wed, 5 May 2021 13:24:17 +0300 Subject: [PATCH] hot fix --- lib/config/localized_values.dart | 1 + lib/screens/home/home_screen.dart | 2 +- lib/util/translations_delegate_base.dart | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index d09d33f4..fb01bfb1 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -48,6 +48,7 @@ const Map> localizedValues = { 'service': {'en': 'Service', 'ar': 'خدمة'}, 'referral': {'en': 'Referral', 'ar': 'الإحالة'}, 'inPatient': {'en': 'InPatients', 'ar': 'مرضاي'}, + 'myInPatient': {'en': 'My InPatients', 'ar': 'مرضاي'}, 'inPatientLabel': {'en': 'InPatients', 'ar': 'المريض الداخلي'}, 'inPatientAll': {'en': 'All InPatients', 'ar': 'كل المرضى'}, 'operations': {'en': 'Operations', 'ar': 'عمليات'}, diff --git a/lib/screens/home/home_screen.dart b/lib/screens/home/home_screen.dart index 49f83a66..3a048f52 100644 --- a/lib/screens/home/home_screen.dart +++ b/lib/screens/home/home_screen.dart @@ -284,7 +284,7 @@ class _HomeScreenState extends State { cardIcon: DoctorApp.inpatient, textColor: Colors.white, text: - TranslationBase.of(context).inPatient, + TranslationBase.of(context).myInPatient, onTap: () { Navigator.push( context, diff --git a/lib/util/translations_delegate_base.dart b/lib/util/translations_delegate_base.dart index ba69e104..bd9c68d9 100644 --- a/lib/util/translations_delegate_base.dart +++ b/lib/util/translations_delegate_base.dart @@ -100,6 +100,7 @@ class TranslationBase { String get referral => localizedValues['referral'][locale.languageCode]; String get inPatient => localizedValues['inPatient'][locale.languageCode]; + String get myInPatient => localizedValues['myInPatient'][locale.languageCode]; String get inPatientLabel => localizedValues['inPatientLabel'][locale.languageCode];