From fa95946634e5d97d031284b19f66c1aeb72548b5 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 29 May 2025 15:52:19 +0200 Subject: [PATCH] add title to Pat Man --- .../package_tools/mih_patient_search.dart | 10 +--- .../package_tools/my_patient_list.dart | 46 +++++++++---------- .../package_tools/waiting_room.dart | 9 +--- .../pat_manager/pat_manager.dart | 10 ++++ 4 files changed, 35 insertions(+), 40 deletions(-) diff --git a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/mih_patient_search.dart b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/mih_patient_search.dart index f7a66015..b3be02cb 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/mih_patient_search.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/mih_patient_search.dart @@ -54,14 +54,6 @@ class _MihPatientSearchState extends State { } }, child: Column(mainAxisSize: MainAxisSize.max, children: [ - const Text( - "MIH Patient Lookup", - style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), - ), - Divider( - color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), - //spacer - const SizedBox(height: 10), Row( mainAxisSize: MainAxisSize.min, children: [ @@ -222,7 +214,7 @@ class _MihPatientSearchState extends State { @override Widget build(BuildContext context) { return MihPackageToolBody( - borderOn: true, + borderOn: false, bodyItem: getPatientSearch(), ); } diff --git a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/my_patient_list.dart b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/my_patient_list.dart index a37ef53a..a532bb93 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/my_patient_list.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/my_patient_list.dart @@ -55,28 +55,28 @@ class _MyPatientListState extends State { } }, child: Column(mainAxisSize: MainAxisSize.max, children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text( - "My Patient List", - style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), - ), - IconButton( - iconSize: 20, - icon: const Icon( - Icons.refresh, - ), - onPressed: () { - getMyPatientList(); - }, - ), - ], - ), - Divider( - color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), - //spacer - const SizedBox(height: 10), + // Row( + // mainAxisAlignment: MainAxisAlignment.center, + // children: [ + // const Text( + // "My Patient List", + // style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), + // ), + // IconButton( + // iconSize: 20, + // icon: const Icon( + // Icons.refresh, + // ), + // onPressed: () { + // getMyPatientList(); + // }, + // ), + // ], + // ), + // Divider( + // color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), + // //spacer + // const SizedBox(height: 10), Row( mainAxisSize: MainAxisSize.min, children: [ @@ -202,7 +202,7 @@ class _MyPatientListState extends State { @override Widget build(BuildContext context) { return MihPackageToolBody( - borderOn: true, + borderOn: false, bodyItem: myPatientListTool(), ); } diff --git a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/waiting_room.dart b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/waiting_room.dart index 7b7d5dc0..453ea6ce 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/waiting_room.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_manager/package_tools/waiting_room.dart @@ -67,13 +67,6 @@ class _WaitingRoomState extends State { MihSingleChildScroll( child: Column( children: [ - const Text( - "Waiting Room", - style: const TextStyle( - fontWeight: FontWeight.bold, - fontSize: 25, - ), - ), MIHCalendar( calendarWidth: 500, rowHeight: 35, @@ -466,7 +459,7 @@ class _WaitingRoomState extends State { @override Widget build(BuildContext context) { return MihPackageToolBody( - borderOn: true, + borderOn: false, bodyItem: getBusinessAppointmentsTool(), ); } diff --git a/Frontend/lib/mih_packages/patient_profile/pat_manager/pat_manager.dart b/Frontend/lib/mih_packages/patient_profile/pat_manager/pat_manager.dart index 2b9d68f9..5a436c92 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_manager/pat_manager.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_manager/pat_manager.dart @@ -33,6 +33,7 @@ class _PatManagerState extends State { appActionButton: getActionButton(), appTools: getTools(), appBody: getToolBody(), + appToolTitles: getToolTitle(), selectedbodyIndex: _selcetedIndex, onIndexChange: (newValue) { setState(() { @@ -108,4 +109,13 @@ class _PatManagerState extends State { ]; return toolBodies; } + + List getToolTitle() { + List toolTitles = [ + "Waiting Room", + "Patients", + "Search Patients", + ]; + return toolTitles; + } }