From 2e72d6a5502d42c0298fa19a79dc3661f3aef6d3 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 19 Dec 2022 13:13:52 +0300 Subject: [PATCH] LiveCare contact added --- lib/config/localized_values.dart | 3 ++- .../livecare/widgets/LiveCarePendingRequest.dart | 13 ++++++++++--- lib/uitl/translations_delegate_base.dart | 1 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 43aa0605..958b451d 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1868,4 +1868,5 @@ const Map localizedValues = { "needApproval": {"en": "Your sick leave is under process in medical administration, you will be notified once approved.", "ar": "جازتك المرضية تحت الإجراء في الإدارة الطبية ، سوف يتم إشعارك فور الموافقه عليها."}, "pendingActivation": {"en": "Pending Activation", "ar": "في انتظار التنشيط"}, "awaitingApproval": {"en": "Awaiting Approval", "ar": "انتظر القبول"}, -}; + "liveCareSupportContact": {"en": "LiveCare Support Contact: ", "ar": "اتصل لايف كير: "}, +}; \ No newline at end of file diff --git a/lib/pages/livecare/widgets/LiveCarePendingRequest.dart b/lib/pages/livecare/widgets/LiveCarePendingRequest.dart index 12be6bc2..7f22c7b6 100644 --- a/lib/pages/livecare/widgets/LiveCarePendingRequest.dart +++ b/lib/pages/livecare/widgets/LiveCarePendingRequest.dart @@ -96,6 +96,15 @@ class _LiveCarePendingRequestState extends State { child: Text(TranslationBase.of(context).yourTurn + " " + widget.pendingERRequestHistoryList.patCount.toString() + " " + TranslationBase.of(context).patients, style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.48)), ), + Row( + children: [ + Container( + padding: const EdgeInsets.all(5.0), + child: Text(TranslationBase.of(context).liveCareSupportContact, style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.48)), + ), + Directionality(textDirection: TextDirection.ltr, child: Text("011 525 9553", style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, letterSpacing: -0.48))) + ], + ), mHeight(12.0), Container( child: DefaultButton(TranslationBase.of(context).callLiveCareSupport, () { @@ -220,9 +229,7 @@ class _LiveCarePendingRequestState extends State { ); } - callLiveCareSupport() { - - } + callLiveCareSupport() {} cancelLiveCareRequest() { LiveCareService service = new LiveCareService(); diff --git a/lib/uitl/translations_delegate_base.dart b/lib/uitl/translations_delegate_base.dart index 6311ff9b..705118e7 100644 --- a/lib/uitl/translations_delegate_base.dart +++ b/lib/uitl/translations_delegate_base.dart @@ -2876,6 +2876,7 @@ class TranslationBase { String get callLiveCareSupport => localizedValues["callLiveCareSupport"][locale.languageCode]; String get pendingActivation => localizedValues["pendingActivation"][locale.languageCode]; String get awaitingApproval => localizedValues["awaitingApproval"][locale.languageCode]; + String get liveCareSupportContact => localizedValues["liveCareSupportContact"][locale.languageCode]; }