QOL: Calanedar message alingment

This commit is contained in:
2025-12-01 10:49:14 +02:00
parent aef501cd25
commit 56d54a3711
2 changed files with 67 additions and 65 deletions

View File

@@ -52,8 +52,9 @@ class _PatientAccessRequestState extends State<Appointments> {
List<Appointment> appointmentList = mzansiProfileProvider.personalHome List<Appointment> appointmentList = mzansiProfileProvider.personalHome
? mihCalendarProvider.personalAppointments! ? mihCalendarProvider.personalAppointments!
: mihCalendarProvider.businessAppointments!; : mihCalendarProvider.businessAppointments!;
if (appointmentList.isNotEmpty) {
return Expanded( return appointmentList.isNotEmpty
? Expanded(
child: BuildAppointmentList( child: BuildAppointmentList(
inWaitingRoom: false, inWaitingRoom: false,
titleController: _appointmentTitleController, titleController: _appointmentTitleController,
@@ -62,13 +63,12 @@ class _PatientAccessRequestState extends State<Appointments> {
dateController: _appointmentDateController, dateController: _appointmentDateController,
timeController: _appointmentTimeController, timeController: _appointmentTimeController,
), ),
); )
} : Expanded(
return Expanded(
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0), padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
const SizedBox(height: 50), const SizedBox(height: 50),
@@ -87,7 +87,8 @@ class _PatientAccessRequestState extends State<Appointments> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MihColors.getSecondaryColor( color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"),
), ),
), ),
const SizedBox(height: 25), const SizedBox(height: 25),
@@ -99,7 +100,8 @@ class _PatientAccessRequestState extends State<Appointments> {
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MihColors.getSecondaryColor( color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"),
), ),
children: [ children: [
TextSpan(text: "Press "), TextSpan(text: "Press "),

View File

@@ -144,7 +144,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0), padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
const SizedBox(height: 50), const SizedBox(height: 50),