CalenderPicker constructor
CalenderPicker(
- DateTime startDate, {
- Key? key,
- double width = 60,
- double height = 70,
- bool enableMultiSelection = false,
- TextStyle monthTextStyle = defaultMonthTextStyle,
- TextStyle dayTextStyle = defaultDayTextStyle,
- TextStyle dateTextStyle = defaultDateTextStyle,
- Color selectedTextColor = Colors.white,
- Color selectionColor = AppColors.defaultSelectionColor,
- DateTime? initialSelectedDate,
- MultiSelectionListener? multiSelectionListener,
- List<
DateTime> ? activeDates, - int daysCount = 500,
- DateChangeListener? onDateChange,
- String locale = "en_US",
Implementation
CalenderPicker(
this.startDate, {
Key? key,
this.width = 60,
this.height = 70,
this.enableMultiSelection = false,
this.monthTextStyle = defaultMonthTextStyle,
this.dayTextStyle = defaultDayTextStyle,
this.dateTextStyle = defaultDateTextStyle,
this.selectedTextColor = Colors.white,
this.selectionColor = AppColors.defaultSelectionColor,
this.initialSelectedDate,
this.multiSelectionListener,
this.activeDates,
this.daysCount = 500,
this.onDateChange,
this.locale = "en_US",
}) : assert(
activeDates == null,
"Can't "
"provide both activated and deactivated dates List at the same time.");