minDate property
The minimum date as much as the SfCalendar will navigate.
The SfCalendar widget will navigate as minimum as to the given date, and the dates before that date will be disabled for interaction and navigation to those dates were restricted.
Defaults to 1st January of 0001
.
Note: If the initialDisplayDate property set with the date prior to this date, the SfCalendar will take this date as a display date and render dates based on the date set to this property.
See also:
- initialDisplayDate, the date which displayed initially on calendar.
- maxDate, which is the maximum available date for the calendar.
- CalendarController.displayDate, which move to the desired date dynamically.
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
minDate: new DateTime(2019, 12, 14, 9, 0, 0),
),
);
}
Implementation
final DateTime minDate;