HorizontalCalendar constructor
HorizontalCalendar(
- DateTime startDate, {
- Key? key,
- double width = 40,
- double height = 80,
- DatePickerController? controller,
- TextStyle monthTextStyle = defaultMonthTextStyle,
- TextStyle dayTextStyle = defaultDayTextStyle,
- TextStyle dateTextStyle = defaultDateTextStyle,
- Color selectedTextColor = Colors.white,
- Color selectionColor = AppColors.defaultSelectionColor,
- Color deactivatedColor = AppColors.defaultDeactivatedColor,
- DateTime? initialSelectedDate,
- List<
DateTime> ? activeDates, - List<
DateTime> ? inactiveDates, - int daysCount = 500,
- DateChangeListener? onDateChange,
- String locale = "en_US",
- TextStyle selectedDayStyle = defaultSelectedTextStyle,
- TextStyle selectedDateStyle = defaultSelectedTextStyle,
- 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,
});