add title to Pat Man

This commit is contained in:
2025-05-29 15:52:19 +02:00
parent e538af2565
commit fa95946634
4 changed files with 35 additions and 40 deletions

View File

@@ -54,14 +54,6 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
} }
}, },
child: Column(mainAxisSize: MainAxisSize.max, children: [ 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( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -222,7 +214,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getPatientSearch(), bodyItem: getPatientSearch(),
); );
} }

View File

@@ -55,28 +55,28 @@ class _MyPatientListState extends State<MyPatientList> {
} }
}, },
child: Column(mainAxisSize: MainAxisSize.max, children: [ child: Column(mainAxisSize: MainAxisSize.max, children: [
Row( // Row(
mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
children: [ // children: [
const Text( // const Text(
"My Patient List", // "My Patient List",
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), // style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
), // ),
IconButton( // IconButton(
iconSize: 20, // iconSize: 20,
icon: const Icon( // icon: const Icon(
Icons.refresh, // Icons.refresh,
), // ),
onPressed: () { // onPressed: () {
getMyPatientList(); // getMyPatientList();
}, // },
), // ),
], // ],
), // ),
Divider( // Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), // color: MzanziInnovationHub.of(context)!.theme.secondaryColor()),
//spacer // //spacer
const SizedBox(height: 10), // const SizedBox(height: 10),
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -202,7 +202,7 @@ class _MyPatientListState extends State<MyPatientList> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: myPatientListTool(), bodyItem: myPatientListTool(),
); );
} }

View File

@@ -67,13 +67,6 @@ class _WaitingRoomState extends State<WaitingRoom> {
MihSingleChildScroll( MihSingleChildScroll(
child: Column( child: Column(
children: [ children: [
const Text(
"Waiting Room",
style: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
MIHCalendar( MIHCalendar(
calendarWidth: 500, calendarWidth: 500,
rowHeight: 35, rowHeight: 35,
@@ -466,7 +459,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBusinessAppointmentsTool(), bodyItem: getBusinessAppointmentsTool(),
); );
} }

View File

@@ -33,6 +33,7 @@ class _PatManagerState extends State<PatManager> {
appActionButton: getActionButton(), appActionButton: getActionButton(),
appTools: getTools(), appTools: getTools(),
appBody: getToolBody(), appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex, selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) { onIndexChange: (newValue) {
setState(() { setState(() {
@@ -108,4 +109,13 @@ class _PatManagerState extends State<PatManager> {
]; ];
return toolBodies; return toolBodies;
} }
List<String> getToolTitle() {
List<String> toolTitles = [
"Waiting Room",
"Patients",
"Search Patients",
];
return toolTitles;
}
} }