timeIntervalHeight property

double timeIntervalHeight
final

The height for each time slot to layout within this in time slot views of SfCalendar.

Defaults to 40.

Note: Calendar time interval height can be adjusted based on screen height by changing the value of this property to -1. It will auto-fit to the screen height and width.

This property applicable only for day, week and work week view of calendar

See also:

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 timeIntervalHeight;