add title to Calendar
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user