diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 86ae3c27..3c4db1f7 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1141,7 +1141,7 @@ const Map> localizedValues = { "en": "Condition On Discharge", "ar": "الحالة عند الاخراج" }, - "planedProcedure": {"en": "Planed Procedure", "ar": "الإجراء المخطط"}, + "planedProcedure": {"en": "Planned Procedure", "ar": "الإجراء المخطط"}, "moreDetails": {"en": "More Details", "ar": "المزيد من التفاصيل"}, "VTE_Type": {"en": "VTE Type", "ar": "VTE Type"}, "pharmacology": {"en": "Pharmacology", "ar": "علم العقاقير"}, diff --git a/lib/screens/patients/profile/discharge_summary/discharge_Summary_widget.dart b/lib/screens/patients/profile/discharge_summary/discharge_Summary_widget.dart index 9005d5ef..7be5c3d5 100644 --- a/lib/screens/patients/profile/discharge_summary/discharge_Summary_widget.dart +++ b/lib/screens/patients/profile/discharge_summary/discharge_Summary_widget.dart @@ -130,30 +130,33 @@ class _DischargeSummaryWidgetState extends State { SizedBox( height: 5.0, ), - Container( - width: MediaQuery.of(context).size.width * 0.5, - child: RichText( - maxLines: 3, - overflow: TextOverflow.ellipsis, - text: new TextSpan( - style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)), - children: [ - new TextSpan( - text: TranslationBase.of(context).investigation + ": ", - style: TextStyle( - fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, - color: Color(0xFF575757), - //TranslationBase.of(context).doctorResponse + " : ", - )), - new TextSpan( - text: Utils.parseHtmlString(widget.dischargeSummary.investigations ?? ""), - style: TextStyle( - fontFamily: 'Poppins', - fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3, - color: Color(0xFF2E303A), - fontWeight: FontWeight.w700, - )), - ], + Visibility( + visible: Utils.parseHtmlString(widget.dischargeSummary.investigations ?? "").isNotEmpty, + child: Container( + width: MediaQuery.of(context).size.width * 0.5, + child: RichText( + maxLines: 3, + overflow: TextOverflow.ellipsis, + text: new TextSpan( + style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)), + children: [ + new TextSpan( + text: TranslationBase.of(context).investigation + ": ", + style: TextStyle( + fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, + color: Color(0xFF575757), + //TranslationBase.of(context).doctorResponse + " : ", + )), + new TextSpan( + text: Utils.parseHtmlString(widget.dischargeSummary.investigations ?? ""), + style: TextStyle( + fontFamily: 'Poppins', + fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3, + color: Color(0xFF2E303A), + fontWeight: FontWeight.w700, + )), + ], + ), ), ), ), @@ -169,7 +172,7 @@ class _DischargeSummaryWidgetState extends State { style: new TextStyle(fontSize: 1.3 * SizeConfig.textMultiplier!, color: Color(0xFF575757)), children: [ new TextSpan( - text: TranslationBase.of(context).investigation + ": ", + text: TranslationBase.of(context).condition + ": ", style: TextStyle( fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, color: Color(0xFF575757),