From a7b3e14b80e7c32c31d8ee9d453fe868bd838ea7 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 25 Feb 2025 13:23:24 +0200 Subject: [PATCH] add title for type of calendar you are in --- .../mih_packages/calendar/appointments.dart | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Frontend/lib/mih_packages/calendar/appointments.dart b/Frontend/lib/mih_packages/calendar/appointments.dart index 537bc746..83ecc6a0 100644 --- a/Frontend/lib/mih_packages/calendar/appointments.dart +++ b/Frontend/lib/mih_packages/calendar/appointments.dart @@ -214,6 +214,14 @@ class _PatientAccessRequestState extends State { checkforchange(); } + String getTitle() { + if (widget.personalSelected == false) { + return "Business Appointments"; + } else { + return "Personal Appointments"; + } + } + void checkforchange() { setState(() { if (widget.personalSelected == false) { @@ -265,13 +273,13 @@ class _PatientAccessRequestState extends State { children: [ Column( children: [ - // const Text( - // "Appointments", - // style: TextStyle( - // fontWeight: FontWeight.bold, - // fontSize: 25, - // ), - // ), + Text( + getTitle(), + style: const TextStyle( + fontWeight: FontWeight.bold, + fontSize: 25, + ), + ), MIHCalendar( calendarWidth: 500, rowHeight: 35,