HorizontalCalendar constructor

HorizontalCalendar(
  1. DateTime startDate, {
  2. Key? key,
  3. double width = 40,
  4. double height = 80,
  5. DatePickerController? controller,
  6. TextStyle monthTextStyle = defaultMonthTextStyle,
  7. TextStyle dayTextStyle = defaultDayTextStyle,
  8. TextStyle dateTextStyle = defaultDateTextStyle,
  9. Color selectedTextColor = Colors.white,
  10. Color selectionColor = AppColors.defaultSelectionColor,
  11. Color deactivatedColor = AppColors.defaultDeactivatedColor,
  12. DateTime? initialSelectedDate,
  13. List<DateTime>? activeDates,
  14. List<DateTime>? inactiveDates,
  15. int daysCount = 500,
  16. DateChangeListener? onDateChange,
  17. String locale = "en_US",
  18. TextStyle selectedDayStyle = defaultSelectedTextStyle,
  19. TextStyle selectedDateStyle = defaultSelectedTextStyle,
  20. required FixedExtentScrollController itemController,
})

Implementation

HorizontalCalendar(
  this.startDate, {
  Key? key,
  this.width = 40,
  this.height = 80,
  this.controller,
  this.monthTextStyle = defaultMonthTextStyle,
  this.dayTextStyle = defaultDayTextStyle,
  this.dateTextStyle = defaultDateTextStyle,
  this.selectedTextColor = Colors.white,
  this.selectionColor = AppColors.defaultSelectionColor,
  this.deactivatedColor = AppColors.defaultDeactivatedColor,
  this.initialSelectedDate,
  this.activeDates,
  this.inactiveDates,
  this.daysCount = 500,
  this.onDateChange,
  this.locale = "en_US",
  this.selectedDayStyle = defaultSelectedTextStyle,
  this.selectedDateStyle = defaultSelectedTextStyle,
  required this.itemController,
});