QOL: Calanedar message alingment
This commit is contained in:
@@ -52,78 +52,80 @@ 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
|
||||||
child: BuildAppointmentList(
|
? Expanded(
|
||||||
inWaitingRoom: false,
|
child: BuildAppointmentList(
|
||||||
titleController: _appointmentTitleController,
|
inWaitingRoom: false,
|
||||||
descriptionIDController: _appointmentDescriptionIDController,
|
titleController: _appointmentTitleController,
|
||||||
patientIdController: null,
|
descriptionIDController: _appointmentDescriptionIDController,
|
||||||
dateController: _appointmentDateController,
|
patientIdController: null,
|
||||||
timeController: _appointmentTimeController,
|
dateController: _appointmentDateController,
|
||||||
),
|
timeController: _appointmentTimeController,
|
||||||
);
|
|
||||||
}
|
|
||||||
return Expanded(
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
|
||||||
child: Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
const SizedBox(height: 50),
|
|
||||||
Icon(
|
|
||||||
MihIcons.calendar,
|
|
||||||
size: 165,
|
|
||||||
color: MihColors.getSecondaryColor(
|
|
||||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
)
|
||||||
Text(
|
: Expanded(
|
||||||
"No appointments for ${mihCalendarProvider.selectedDay}",
|
child: Padding(
|
||||||
textAlign: TextAlign.center,
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
overflow: TextOverflow.visible,
|
child: Column(
|
||||||
style: TextStyle(
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
fontSize: 25,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
fontWeight: FontWeight.bold,
|
children: [
|
||||||
color: MihColors.getSecondaryColor(
|
const SizedBox(height: 50),
|
||||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
Icon(
|
||||||
),
|
MihIcons.calendar,
|
||||||
),
|
size: 165,
|
||||||
const SizedBox(height: 25),
|
|
||||||
Center(
|
|
||||||
child: RichText(
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
text: TextSpan(
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.normal,
|
|
||||||
color: MihColors.getSecondaryColor(
|
color: MihColors.getSecondaryColor(
|
||||||
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
|
||||||
),
|
),
|
||||||
children: [
|
const SizedBox(height: 10),
|
||||||
TextSpan(text: "Press "),
|
Text(
|
||||||
WidgetSpan(
|
"No appointments for ${mihCalendarProvider.selectedDay}",
|
||||||
alignment: PlaceholderAlignment.middle,
|
textAlign: TextAlign.center,
|
||||||
child: Icon(
|
overflow: TextOverflow.visible,
|
||||||
Icons.menu,
|
style: TextStyle(
|
||||||
size: 20,
|
fontSize: 25,
|
||||||
color: MihColors.getSecondaryColor(
|
fontWeight: FontWeight.bold,
|
||||||
MzansiInnovationHub.of(context)!.theme.mode ==
|
color: MihColors.getSecondaryColor(
|
||||||
"Dark"),
|
MzansiInnovationHub.of(context)!.theme.mode ==
|
||||||
|
"Dark"),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 25),
|
||||||
|
Center(
|
||||||
|
child: RichText(
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
text: TextSpan(
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.normal,
|
||||||
|
color: MihColors.getSecondaryColor(
|
||||||
|
MzansiInnovationHub.of(context)!.theme.mode ==
|
||||||
|
"Dark"),
|
||||||
|
),
|
||||||
|
children: [
|
||||||
|
TextSpan(text: "Press "),
|
||||||
|
WidgetSpan(
|
||||||
|
alignment: PlaceholderAlignment.middle,
|
||||||
|
child: Icon(
|
||||||
|
Icons.menu,
|
||||||
|
size: 20,
|
||||||
|
color: MihColors.getSecondaryColor(
|
||||||
|
MzansiInnovationHub.of(context)!.theme.mode ==
|
||||||
|
"Dark"),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
TextSpan(
|
||||||
|
text:
|
||||||
|
" to add an appointment or select a different date"),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextSpan(
|
),
|
||||||
text:
|
],
|
||||||
" to add an appointment or select a different date"),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
);
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void addAppointmentWindow(MzansiProfileProvider mzansiProfileProvider,
|
void addAppointmentWindow(MzansiProfileProvider mzansiProfileProvider,
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user