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(); checkforchange();
} }
String getTitle() {
if (widget.personalSelected == false) {
return "Business Appointments";
} else {
return "Personal Appointments";
}
}
void checkforchange() { void checkforchange() {
setState(() { setState(() {
if (widget.personalSelected == false) { if (widget.personalSelected == false) {
@@ -265,13 +273,13 @@ class _PatientAccessRequestState extends State<Appointments> {
children: [ children: [
Column( Column(
children: [ children: [
// const Text( Text(
// "Appointments", getTitle(),
// style: TextStyle( style: const TextStyle(
// fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
// fontSize: 25, fontSize: 25,
// ), ),
// ), ),
MIHCalendar( MIHCalendar(
calendarWidth: 500, calendarWidth: 500,
rowHeight: 35, rowHeight: 35,