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.

See also:


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

Mixed-in types
Annotations

Constructors

ScheduleViewSettings({TextStyle? appointmentTextStyle, double appointmentItemHeight = -1, bool hideEmptyScheduleWeek = false, MonthHeaderSettings monthHeaderSettings = const MonthHeaderSettings(), WeekHeaderSettings weekHeaderSettings = const WeekHeaderSettings(), DayHeaderSettings dayHeaderSettings = const DayHeaderSettings(), TextStyle placeholderTextStyle = const TextStyle(color: Colors.grey, fontSize: 15)})
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.
no setteroverride
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
placeholderTextStyle TextStyle
The text style for the text in the placeholder (no event text) of the SfCalendar schedule view.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weekHeaderSettings WeekHeaderSettings
Sets the style to customize week label in SfCalendar schedule view.
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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