TimeSlotViewSettings class

The settings have properties which allow to customize the time slot views of the SfCalendar.

Allows to customize the startHour, endHour, nonWorkingDays, timeInterval, timeIntervalHeight, timeFormat, dateFormat,dayFormat and timeRulerSize in time slot views of calendar.

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.workWeek,
       timeSlotViewSettings: TimeSlotViewSettings(
           startHour: 10,
           endHour: 20,
           nonWorkingDays: <int>[
             DateTime.saturday,
             DateTime.sunday,
             DateTime.friday
           ],
           timeInterval: Duration(minutes: 120),
           timeIntervalHeight: 80,
           timeFormat: 'h:mm',
           dateFormat: 'd',
           dayFormat: 'EEE',
           timeRulerSize: 70),
     ),
   );
 }
Annotations

Constructors

TimeSlotViewSettings({double startHour: 0, double endHour: 24, List<int> nonWorkingDays: const <int>[DateTime.saturday, DateTime.sunday], String timeFormat: 'h a', Duration timeInterval: const Duration(minutes: 60), double timeIntervalHeight: 40, double timeIntervalWidth: -2, double timelineAppointmentHeight: -1, Duration minimumAppointmentDuration, String dateFormat: 'd', String dayFormat: 'EE', double timeRulerSize: -1, TextStyle timeTextStyle})
Creates a timeslot view settings for calendar. [...]
const

Properties

dateFormat String
Formats the date text in the view header view of SfCalendar time slot views. [...]
final
dayFormat String
Formats the day text in the view header view of SfCalendar time slot views. [...]
final
endHour double
The end hour for the time slot views in SfCalendar. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
minimumAppointmentDuration Duration
Sets an arbitrary height for an appointment when it has minimum duration in time slot views of SfCalendar. [...]
final
nonWorkingDays List<int>
The non working days for the work week view and time slot work week view in SfCalendar. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startHour double
The start hour for the time slot views in SfCalendar. [...]
final
timeFormat String
Formats for the time text in the time slot views of SfCalendar. [...]
final
timeInterval Duration
The time interval between the time slots in time slot views of SfCalendar. [...]
final
timeIntervalHeight double
The height for each time slot to layout within this in time slot views of SfCalendar. [...]
final
timeIntervalWidth double
The width for each time slots in the timeline views of SfCalendar. [...]
final
timelineAppointmentHeight double
The height for an appointment view to layout within this in timeline views of SfCalendar. [...]
final
timeRulerSize double
The width for the time ruler view to layout with in this in time slot views of SfCalendar. [...]
final
timeTextStyle TextStyle
The text style for the time text in the time slots views of SfCalendar. [...]
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