add title for type of calendar you are in

This commit is contained in:
2025-02-25 13:23:24 +02:00
parent a8e94071de
commit a7b3e14b80

View File

@@ -214,6 +214,14 @@ class _PatientAccessRequestState extends State<Appointments> {
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<Appointments> {
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,