weekHeaderSettings property
Sets the style to customize week label in SfCalendar schedule view.
Allows to customize the WeekHeaderSettings.startDateFormat,
WeekHeaderSettings.endDateFormat, WeekHeaderSettings.height,
WeekHeaderSettings.textAlign, WeekHeaderSettings.backgroundColor and
WeekHeaderSettings.labelTextStyle
in week label style of schedule view
in calendar.
See also:
- monthHeaderSettings, which used to customize the month header view of the schedule view in calendar.
- dayHeaderSettings, which used to customize the day header view of the schedule view in calendar.
- hideEmptyScheduleWeek, which used to hide the week header if the week doesn't have any appointment on it.
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to view schedule
- Knowledge base: How to customize the schedule view
@override
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.schedule,
scheduleViewSettings: ScheduleViewSettings(
weekHeaderSettings: WeekHeaderSettings(
startDateFormat: 'dd MMM ',
endDateFormat: 'dd MMM, yy',
height: 50,
textAlign: TextAlign.center,
backgroundColor: Colors.red,
weekTextStyle: TextStyle(
color: Colors.white,
fontWeight: FontWeight.w400,
fontSize: 15,
))),
),
);
}
Implementation
final WeekHeaderSettings weekHeaderSettings;