Fix Calendar
This commit is contained in:
@@ -243,57 +243,60 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||||||
Widget getBody() {
|
Widget getBody() {
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
Column(
|
SingleChildScrollView(
|
||||||
children: [
|
child: Column(
|
||||||
Text(
|
children: [
|
||||||
getTitle(),
|
Text(
|
||||||
style: const TextStyle(
|
getTitle(),
|
||||||
fontWeight: FontWeight.bold,
|
style: const TextStyle(
|
||||||
fontSize: 25,
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 25,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
MIHCalendar(
|
||||||
MIHCalendar(
|
calendarWidth: 500,
|
||||||
calendarWidth: 500,
|
rowHeight: 35,
|
||||||
rowHeight: 35,
|
setDate: (value) {
|
||||||
setDate: (value) {
|
setState(() {
|
||||||
setState(() {
|
selectedDay = value;
|
||||||
selectedDay = value;
|
selectedAppointmentDateController.text = selectedDay;
|
||||||
selectedAppointmentDateController.text = selectedDay;
|
});
|
||||||
});
|
}),
|
||||||
}),
|
// Divider(
|
||||||
// Divider(
|
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
// ),
|
||||||
// ),
|
Row(
|
||||||
Row(
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisSize: MainAxisSize.max,
|
children: [
|
||||||
children: [
|
FutureBuilder(
|
||||||
FutureBuilder(
|
future: appointmentResults,
|
||||||
future: appointmentResults,
|
builder: (context, snapshot) {
|
||||||
builder: (context, snapshot) {
|
if (snapshot.connectionState ==
|
||||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
ConnectionState.waiting) {
|
||||||
return const Expanded(
|
return const Expanded(
|
||||||
child: Center(child: Mihloadingcircle()));
|
child: Center(child: Mihloadingcircle()));
|
||||||
} else if (snapshot.connectionState ==
|
} else if (snapshot.connectionState ==
|
||||||
ConnectionState.done &&
|
ConnectionState.done &&
|
||||||
snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
return displayAppointmentList(snapshot.requireData);
|
return displayAppointmentList(snapshot.requireData);
|
||||||
} else {
|
} else {
|
||||||
return Center(
|
return Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Error pulling appointments",
|
"Error pulling appointments",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 25,
|
fontSize: 25,
|
||||||
color: MzanziInnovationHub.of(context)!
|
color: MzanziInnovationHub.of(context)!
|
||||||
.theme
|
.theme
|
||||||
.errorColor()),
|
.errorColor()),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
right: 0,
|
right: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user