maxDate property
HijriDateTime
maxDate
final
The maximum date as much as the SfHijriDateRangePicker will navigate.
The SfHijriDateRangePicker widget will navigate as maximum as to the given date, and the dates after that date will be disabled for interaction and navigation to those dates were restricted.
Defaults to 30th Dhu al-Hijjah of 1499
.
Note: If the initialDisplayDate or controller.displayDate
property
set with the date after to this date, the SfHijriDateRangePicker will
take this max date as a display date and render dates based on the date
set to this property.
See also:
- initialDisplayDate, which used to navigate the hijri date range picker to the specific date on initially.
- minDate, which is least available date for the hijri date range picker.
controller.displayDate
, which used to navigate the hijri date range picker to specific date on dynamically.- enablePastDates, which allows to enable the dates that falls before the today date for interaction.
HijriDateTime
, which handles the date value in hijri type.- Knowledge base: How to enable or disable the past dates
- Knowledge base: How to restrict date range picker within the date limit
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
view: HijriDatePickerView.month,
maxDate: HijriDateTime(1450, 12, 30),
),
),
);
}
Implementation
final HijriDateTime maxDate;