CalendarHeaderView constructor
const
CalendarHeaderView({})
Constructor for CalendarHeaderView
onMonthChanged- Callback when month changestextStyle- Text style for the month/year labeliconColor- Color for the previous/next arrow iconsselectedMonthColor- Color of selected month in the picker gridunselectedMonthColor- Color of unselected months in the picker gridmonthItemDecoration- Decoration for each month cellheight- Height of the bottom sheetcrossAxisCount- Number of columns in month gridchildAspectRatio- Aspect ratio for month grid items
Implementation
const CalendarHeaderView({
super.key,
required this.onMonthChanged,
this.textStyle,
this.iconColor,
this.selectedMonthColor,
this.unselectedMonthColor,
this.monthItemDecoration,
this.height = 320,
this.crossAxisCount = 3,
this.childAspectRatio = 2.5,
});