scheduleViewSettings property
The settings have properties which allow to customize the schedule view of the SfCalendar.
Allows to customize the ScheduleViewSettings.monthHeaderSettings, ScheduleViewSettings.weekHeaderSettings, ScheduleViewSettings.dayHeaderSettings, ScheduleViewSettings.appointmentTextStyle, ScheduleViewSettings.appointmentItemHeight and ScheduleViewSettings.hideEmptyScheduleWeek in schedule view of calendar.
See also:
- scheduleViewMonthHeaderBuilder, to customize the schedule view month header with a custom widget.
- ScheduleViewSettings, to know about the available customization options for schedule view.
- Knowledge base: How to customize appointment height in schedule view
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to customize schedule view month header with builder
- 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(
appointmentItemHeight: 60,
weekHeaderSettings: WeekHeaderSettings(
height: 40,
textAlign: TextAlign.center,
)),
),
);
}
Implementation
final ScheduleViewSettings scheduleViewSettings;