timeRulerSize property
The width for the time ruler view to layout with in this in time slot views of SfCalendar.
Defaults to -1
.
See also:
- timeTextStyle, which is the text style for the time text in the timeslot views of calendar.
- timeFormat, which used to format the time text in the timeslot views of calendar.
- timeInterval, which is the duration of every single timeslot in the timeslot views of calendar.
- Knowledge base: How to customize time label
- Knowledge base: How to format the date and time in timeline views
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 double timeRulerSize;