AlhCalendar constructor
const
AlhCalendar({
- required DayBuilder dayBuilder,
- required HeaderTitleBuilder headerBuilder,
- required Widget headerLeading,
- required Widget headerTrailing,
- required DayOfWeekBuilder dayOfWeekBuilder,
- required Map<
DayOfWeek, String> daysOfWeek, - DateTime? initialDate,
- DateTime? disableNextMonthFromDate,
- DateTime? disablePreviousMonthFromDate,
- DateTime? minSelectableDate,
- DateTime? maxSelectableDate,
- ValueChanged<
DateTime> ? onMonthChanged, - ValueChanged<
DateTime> ? onDayChanged, - EdgeInsets headerPadding = const EdgeInsets.symmetric(horizontal: 3.0),
- EdgeInsets iconPadding = const EdgeInsets.all(8),
- Duration pageChangeDuration = const Duration(milliseconds: 400),
- Curve pageChangeCurve = Curves.easeInOut,
- bool enableHorizontalSwipe = true,
- bool showSixWeeksForEveryMonth = true,
- bool disableTapOnOutOfRange = true,
- bool enableJumpToOtherMonth = true,
- bool selectInitialDate = true,
- Key? key,
Implementation
const AlhCalendar({
required this.dayBuilder,
required this.headerBuilder,
required this.headerLeading,
required this.headerTrailing,
required this.dayOfWeekBuilder,
required this.daysOfWeek,
this.initialDate,
this.disableNextMonthFromDate,
this.disablePreviousMonthFromDate,
this.minSelectableDate,
this.maxSelectableDate,
this.onMonthChanged,
this.onDayChanged,
this.headerPadding = const EdgeInsets.symmetric(horizontal: 3.0),
this.iconPadding = const EdgeInsets.all(8),
this.pageChangeDuration = const Duration(milliseconds: 400),
this.pageChangeCurve = Curves.easeInOut,
this.enableHorizontalSwipe = true,
this.showSixWeeksForEveryMonth = true,
this.disableTapOnOutOfRange = true,
this.enableJumpToOtherMonth = true,
this.selectInitialDate = true,
super.key,
}) : assert(daysOfWeek.length == 7);