add title to Patient Profile

This commit is contained in:
2025-05-29 15:15:42 +02:00
parent c9a99e6191
commit 67021efd8f
5 changed files with 15 additions and 48 deletions

View File

@@ -114,7 +114,7 @@ class _PatientClaimOrStatementState extends State<PatientClaimOrStatement> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }

View File

@@ -321,7 +321,7 @@ class _PatientConsultationState extends State<PatientConsultation> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -340,26 +340,6 @@ class _PatientConsultationState extends State<PatientConsultation> {
} else if (snapshot.hasData) { } else if (snapshot.hasData) {
final notesList = snapshot.data!; final notesList = snapshot.data!;
return Column(children: [ return Column(children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Consultation Notes",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor()),
),
],
),
Divider(
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor()),
const SizedBox(height: 10),
BuildNotesList( BuildNotesList(
notes: notesList, notes: notesList,
signedInUser: widget.signedInUser, signedInUser: widget.signedInUser,

View File

@@ -604,7 +604,7 @@ class _PatientDocumentsState extends State<PatientDocuments> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -623,27 +623,6 @@ class _PatientDocumentsState extends State<PatientDocuments> {
} else if (snapshot.hasData) { } else if (snapshot.hasData) {
final filesList = snapshot.data!; final filesList = snapshot.data!;
return Column(children: [ return Column(children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Documents",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
],
),
Divider(
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor()),
const SizedBox(height: 10),
BuildFilesList( BuildFilesList(
files: filesList, files: filesList,
signedInUser: widget.signedInUser, signedInUser: widget.signedInUser,

View File

@@ -233,7 +233,7 @@ class _PatientInfoState extends State<PatientInfo> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MihPackageToolBody( return MihPackageToolBody(
borderOn: true, borderOn: false,
bodyItem: getBody(), bodyItem: getBody(),
); );
} }
@@ -260,9 +260,6 @@ class _PatientInfoState extends State<PatientInfo> {
), ),
), ),
]), ]),
Divider(
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10), const SizedBox(height: 10),
getPatientDetailsField(), getPatientDetailsField(),
const SizedBox(height: 10), const SizedBox(height: 10),

View File

@@ -27,6 +27,7 @@ class _PatientProfileState extends State<PatientProfile> {
appActionButton: getAction(), appActionButton: getAction(),
appTools: getTools(), appTools: getTools(),
appBody: getToolBody(), appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex, selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) { onIndexChange: (newValue) {
setState(() { setState(() {
@@ -109,4 +110,14 @@ class _PatientProfileState extends State<PatientProfile> {
]; ];
return toolBodies; return toolBodies;
} }
List<String> getToolTitle() {
List<String> toolTitles = [
"Details",
"Notes",
"Documents",
"Claims",
];
return toolTitles;
}
} }