CalendarDatePicker2Config constructor
CalendarDatePicker2Config({
- CalendarDatePicker2Type? calendarType,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTime? currentDate,
- DatePickerMode? calendarViewMode,
- List<
String> ? weekdayLabels, - TextStyle? weekdayLabelTextStyle,
- int? firstDayOfWeek,
- double? controlsHeight,
- Widget? lastMonthIcon,
- Widget? nextMonthIcon,
- TextStyle? controlsTextStyle,
- TextStyle? dayTextStyle,
- TextStyle? selectedDayTextStyle,
- Color? selectedDayHighlightColor,
- Color? selectedRangeHighlightColor,
- TextStyle? disabledDayTextStyle,
- TextStyle? todayTextStyle,
- TextStyle? yearTextStyle,
- TextStyle? selectedYearTextStyle,
- BorderRadius? dayBorderRadius,
- BorderRadius? yearBorderRadius,
- SelectableDayPredicate? selectableDayPredicate,
- CalendarDayTextStylePredicate? dayTextStylePredicate,
- CalendarDayBuilder? dayBuilder,
- CalendarYearBuilder? yearBuilder,
- bool? disableModePicker,
- bool? centerAlignModePicker,
- Widget? customModePickerIcon,
- CalendarModePickerTextHandler? modePickerTextHandler,
- TextStyle? selectedRangeDayTextStyle,
- bool rangeBidirectional = false,
- bool deshabilitarFinDeSemana = false,
- bool mostrarPrimeroMesActual = false,
- int cantidadMesesAMostrar = 12,
Implementation
CalendarDatePicker2Config({
CalendarDatePicker2Type? calendarType,
DateTime? firstDate,
DateTime? lastDate,
DateTime? currentDate,
DatePickerMode? calendarViewMode,
this.weekdayLabels,
this.weekdayLabelTextStyle,
this.firstDayOfWeek,
this.controlsHeight,
this.lastMonthIcon,
this.nextMonthIcon,
this.controlsTextStyle,
this.dayTextStyle,
this.selectedDayTextStyle,
this.selectedDayHighlightColor,
this.selectedRangeHighlightColor,
this.disabledDayTextStyle,
this.todayTextStyle,
this.yearTextStyle,
this.selectedYearTextStyle,
this.dayBorderRadius,
this.yearBorderRadius,
this.selectableDayPredicate,
this.dayTextStylePredicate,
this.dayBuilder,
this.yearBuilder,
this.disableModePicker,
this.centerAlignModePicker,
this.customModePickerIcon,
this.modePickerTextHandler,
this.selectedRangeDayTextStyle,
this.rangeBidirectional = false,
this.deshabilitarFinDeSemana = false,
this.mostrarPrimeroMesActual = false,
this.cantidadMesesAMostrar = 12,
}) : calendarType = calendarType ?? CalendarDatePicker2Type.single,
firstDate = DateUtils.dateOnly(firstDate ?? DateTime(1970)),
lastDate =
DateUtils.dateOnly(lastDate ?? DateTime(DateTime.now().year + 50)),
currentDate = currentDate ?? DateUtils.dateOnly(DateTime.now()),
calendarViewMode = calendarViewMode ?? DatePickerMode.day;