ScheduleViewSettings class

The settings have properties which allow to customize the schedule view of the SfCalendar.

Allows to customize the monthHeaderSettings, weekHeaderSettings, dayHeaderSettings, appointmentTextStyle, appointmentItemHeight and hideEmptyScheduleWeek in schedule view of calendar.


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           appointmentItemHeight: 60,
           weekHeaderSettings: WeekHeaderSettings(
             height: 40,
             textAlign: TextAlign.center,
           )),
     ),
   );
 }

Annotations

Constructors

ScheduleViewSettings({TextStyle appointmentTextStyle, double appointmentItemHeight: -1, bool hideEmptyScheduleWeek: false, MonthHeaderSettings monthHeaderSettings, WeekHeaderSettings weekHeaderSettings, DayHeaderSettings dayHeaderSettings})
Creates a schedule view settings for calendar. [...]
const

Properties

appointmentItemHeight double
The height for each appointment view to layout within this in schedule view of SfCalendar,. [...]
final
appointmentTextStyle TextStyle
The text style for the text in the Appointment view in SfCalendar schedule view. [...]
final
dayHeaderSettings DayHeaderSettings
Sets the style to customize day label in SfCalendar schedule view. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
hideEmptyScheduleWeek bool
Hides the weeks that doesn’t contain appointment on it. [...]
final
monthHeaderSettings MonthHeaderSettings
Sets the style to customize month label in SfCalendar schedule view. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
weekHeaderSettings WeekHeaderSettings
Sets the style to customize week label in SfCalendar schedule view. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override