add title to Calendar

This commit is contained in:
2025-05-29 15:23:56 +02:00
parent ddeb84c9ee
commit 417007c1d6
2 changed files with 9 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ class _MzansiCalendarState extends State<MzansiCalendar> {
appActionButton: getAction(),
appTools: getTools(),
appBody: getToolBody(),
appToolTitles: getToolTitle(),
selectedbodyIndex: _selcetedIndex,
onIndexChange: (newValue) {
setState(() {
@@ -72,4 +73,11 @@ class _MzansiCalendarState extends State<MzansiCalendar> {
];
return toolBodies;
}
List<String> getToolTitle() {
List<String> toolTitles = [
widget.arguments.personalSelected == true ? "Personal" : "Business",
];
return toolTitles;
}
}

View File

@@ -253,13 +253,6 @@ class _PatientAccessRequestState extends State<Appointments> {
MihSingleChildScroll(
child: Column(
children: [
Text(
getTitle(),
style: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 25,
),
),
MIHCalendar(
calendarWidth: 500,
rowHeight: 35,
@@ -370,7 +363,7 @@ class _PatientAccessRequestState extends State<Appointments> {
@override
Widget build(BuildContext context) {
return MihPackageToolBody(
borderOn: true,
borderOn: false,
bodyItem: getBody(),
);
}