minimumAppointmentDuration property

Duration? minimumAppointmentDuration
final

Sets an arbitrary height for an appointment when it has minimum duration in time slot views of SfCalendar.

Defaults to null.

Note: The value set to this property will be applicable, only when an Appointment duration value lesser than this property.

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: 60),
           minimumAppointmentDuration: Duration(minutes: 30),
           timeIntervalHeight: 80,
           timeFormat: 'h:mm',
           dateFormat: 'd',
           dayFormat: 'EEE',
           timeRulerSize: 70),
     ),
   );
 }

Implementation

final Duration? minimumAppointmentDuration;