diff --git a/lib/screens/patients/profile/soap_update_vida_plus/objective/list_of_examination.dart b/lib/screens/patients/profile/soap_update_vida_plus/objective/list_of_examination.dart index 6e0eedab..082221f5 100644 --- a/lib/screens/patients/profile/soap_update_vida_plus/objective/list_of_examination.dart +++ b/lib/screens/patients/profile/soap_update_vida_plus/objective/list_of_examination.dart @@ -28,7 +28,7 @@ class ListOfExamination extends StatelessWidget { ///todo handle the event as per the actiion /// the action is [SoapDetailItemActions] }, - status: 'active', + status: TranslationBase.of(context).active, showActions: false, ), separatorBuilder: (_, __) => Divider(), diff --git a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart index 3297a83b..732fb50f 100644 --- a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart +++ b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart @@ -6,6 +6,7 @@ import 'package:doctor_app_flutter/screens/patients/profile/soap_update/subjecti import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/AddChiefComplaints.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_soap_item.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/complaint_items.dart'; +import 'package:doctor_app_flutter/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart'; import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart'; import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart'; import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart'; @@ -50,24 +51,27 @@ class UpdateChiefComplaints extends StatelessWidget { title: TranslationBase.of(context).addChiefComplaint, ), SizedBox(height: 16), - Container(width: MediaQuery.of(context).size.width, - height: 40, - child: - ListView.builder( - shrinkWrap: true, - scrollDirection: Axis.horizontal, - itemCount: model.getChiefComplaintListVidaPlus.length, - itemBuilder: (_, index) => - ComplaintItems( - complaint: model.getChiefComplaintListVidaPlus[index]!, - onCrossClicked: (complaints) { - - }) - - )), - - ]), - )); + if (model.getChiefComplaintListVidaPlus.isEmpty) ...{ + SizedBox( + width: MediaQuery.sizeOf(context).width, + child: EmptyComplaints(), + ) + } else ...{ + Container( + width: MediaQuery.of(context).size.width, + height: 40, + child: ListView.builder( + shrinkWrap: true, + scrollDirection: Axis.horizontal, + itemCount: + model.getChiefComplaintListVidaPlus.length, + itemBuilder: (_, index) => ComplaintItems( + complaint: model + .getChiefComplaintListVidaPlus[index]!, + onCrossClicked: (complaints) {}))), + } + ]), + )); } getChiefComplaints(SOAPViewModel model){ model.getChiefComplaint(patientInfo); diff --git a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart index 1c8d4802..44412e8d 100644 --- a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart +++ b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/empty_complaints.dart @@ -16,6 +16,7 @@ class EmptyComplaints extends StatelessWidget{ TranslationBase.of(context).noComplaintsFound, fontSize: 12, fontWeight: FontWeight.w400, + textAlign: TextAlign.center, color: Color(0xFFADADAD), ) ],