timeSlotViewSettings property Null safety

TimeSlotViewSettings timeSlotViewSettings
final

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

Allows to customize the TimeSlotViewSettings.startHour, TimeSlotViewSettings.endHour, TimeSlotViewSettings.nonWorkingDays, TimeSlotViewSettings.timeInterval, TimeSlotViewSettings.timeIntervalHeight, TimeSlotViewSettings.timeIntervalWidth, TimeSlotViewSettings.timeFormat, TimeSlotViewSettings.dateFormat, TimeSlotViewSettings.dayFormat, and TimeSlotViewSettings.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),
     ),
   );
 }

Implementation

final TimeSlotViewSettings timeSlotViewSettings;