CalenderPicker constructor

CalenderPicker(
  1. DateTime startDate, {
  2. Key? key,
  3. double width = 60,
  4. double height = 70,
  5. bool enableMultiSelection = false,
  6. TextStyle monthTextStyle = defaultMonthTextStyle,
  7. TextStyle dayTextStyle = defaultDayTextStyle,
  8. TextStyle dateTextStyle = defaultDateTextStyle,
  9. Color selectedTextColor = Colors.white,
  10. Color selectionColor = AppColors.defaultSelectionColor,
  11. DateTime? initialSelectedDate,
  12. MultiSelectionListener? multiSelectionListener,
  13. List<DateTime>? activeDates,
  14. int daysCount = 500,
  15. DateChangeListener? onDateChange,
  16. 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.");