add selected date paramater
This commit is contained in:
@@ -38,6 +38,7 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||||||
String accessFilter = "";
|
String accessFilter = "";
|
||||||
bool forceRefresh = false;
|
bool forceRefresh = false;
|
||||||
late String selectedDropdown;
|
late String selectedDropdown;
|
||||||
|
String selectedDay = DateTime.now().toString().split(" ")[0];
|
||||||
|
|
||||||
late Future<List<AccessRequest>> accessRequestResults;
|
late Future<List<AccessRequest>> accessRequestResults;
|
||||||
|
|
||||||
@@ -250,18 +251,29 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||||||
return MIHBody(
|
return MIHBody(
|
||||||
borderOn: true,
|
borderOn: true,
|
||||||
bodyItems: [
|
bodyItems: [
|
||||||
const MIHCalendar(
|
MIHCalendar(
|
||||||
calendarWidth: 500,
|
calendarWidth: 500,
|
||||||
rowHeight: 35,
|
rowHeight: 35,
|
||||||
),
|
setDate: (value) {
|
||||||
|
setState(() {
|
||||||
|
selectedDay = value;
|
||||||
|
});
|
||||||
|
}),
|
||||||
Divider(
|
Divider(
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
),
|
),
|
||||||
const Center(
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Work Inprogress!!!",
|
"Work Inprogress!!!\nSelected Day: $selectedDay",
|
||||||
style: TextStyle(fontSize: 35),
|
textAlign: TextAlign.center,
|
||||||
))
|
style: const TextStyle(fontSize: 35),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
// const SizedBox(height: 10),
|
// const SizedBox(height: 10),
|
||||||
// Row(
|
// Row(
|
||||||
// mainAxisAlignment: MainAxisAlignment.center,
|
// mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
Reference in New Issue
Block a user