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:
- SfCalendar.scheduleViewMonthHeaderBuilder, which used to set custom widget for month header view of schedule view in calendar.
- SfCalendar.scheduleViewSettings, to know about the available customization options for schedule view.
- MonthViewSettings, to know more about the customization options for the month view of calendar.
- TimeSlotViewSettings, which is used to customize the timeslot view of calendar.
- 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,
)),
),
);
}
- 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 ==(
Object other) → bool -
The equality operator.
override