AlhCalendar constructor

const AlhCalendar({
  1. required DayBuilder dayBuilder,
  2. required HeaderTitleBuilder headerBuilder,
  3. required Widget headerLeading,
  4. required Widget headerTrailing,
  5. required DayOfWeekBuilder dayOfWeekBuilder,
  6. required Map<DayOfWeek, String> daysOfWeek,
  7. DateTime? initialDate,
  8. DateTime? disableNextMonthFromDate,
  9. DateTime? disablePreviousMonthFromDate,
  10. DateTime? minSelectableDate,
  11. DateTime? maxSelectableDate,
  12. ValueChanged<DateTime>? onMonthChanged,
  13. ValueChanged<DateTime>? onDayChanged,
  14. EdgeInsets headerPadding = const EdgeInsets.symmetric(horizontal: 3.0),
  15. EdgeInsets iconPadding = const EdgeInsets.all(8),
  16. Duration pageChangeDuration = const Duration(milliseconds: 400),
  17. Curve pageChangeCurve = Curves.easeInOut,
  18. bool enableHorizontalSwipe = true,
  19. bool showSixWeeksForEveryMonth = true,
  20. bool disableTapOnOutOfRange = true,
  21. bool enableJumpToOtherMonth = true,
  22. bool selectInitialDate = true,
  23. 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);