add padding to messages in appointment and patient manager

This commit is contained in:
2024-11-07 12:27:28 +02:00
parent 2a8c628941
commit a61a5d2064
2 changed files with 49 additions and 32 deletions

View File

@@ -266,10 +266,13 @@ class _PatientAccessRequestState extends State<Appointments> {
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
children: [ children: [
Expanded( Expanded(
child: Text( child: Padding(
"Work Inprogress!!!\nSelected Day: $selectedDay", padding: const EdgeInsets.only(top: 35.0),
textAlign: TextAlign.center, child: Text(
style: const TextStyle(fontSize: 35), "Work Inprogress!!!\nSelected Day: $selectedDay",
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 35),
),
), ),
), ),
], ],

View File

@@ -79,13 +79,16 @@ class _PatientManagerState extends State<PatientManager> {
businessUser: widget.arguments.businessUser, businessUser: widget.arguments.businessUser,
); );
} }
return Center( return Padding(
child: Text( padding: const EdgeInsets.only(top: 35.0),
"No Appointments for $formattedDate", child: Center(
style: TextStyle( child: Text(
fontSize: 25, "No Appointments for $formattedDate",
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), style: TextStyle(
textAlign: TextAlign.center, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center,
),
), ),
); );
} }
@@ -202,23 +205,31 @@ class _PatientManagerState extends State<PatientManager> {
arguments: widget.arguments, arguments: widget.arguments,
); );
} else if (patientsList.isEmpty && searchString != "") { } else if (patientsList.isEmpty && searchString != "") {
return Center( return Padding(
child: Text( padding: const EdgeInsets.only(top: 35.0),
"No ID or Medical Aid No. matches a Patient", child: Center(
style: TextStyle( child: Text(
fontSize: 25, "No ID or Medical Aid No. matches a Patient",
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), style: TextStyle(
textAlign: TextAlign.center, fontSize: 25,
color:
MzanziInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center,
),
), ),
); );
} else { } else {
return Center( return Padding(
child: Text( padding: const EdgeInsets.only(top: 35.0),
"Enter ID or Medical Aid No. of Patient", child: Center(
style: TextStyle( child: Text(
fontSize: 25, "Enter ID or Medical Aid No. of Patient",
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), style: TextStyle(
textAlign: TextAlign.center, fontSize: 25,
color:
MzanziInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center,
),
), ),
); );
} }
@@ -351,13 +362,16 @@ class _PatientManagerState extends State<PatientManager> {
arguments: widget.arguments, arguments: widget.arguments,
); );
} }
return Center( return Padding(
child: Text( padding: const EdgeInsets.only(top: 35.0),
"No Patients matching search", child: Center(
style: TextStyle( child: Text(
fontSize: 25, "No Patients matching search",
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), style: TextStyle(
textAlign: TextAlign.center, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center,
),
), ),
); );
} }