CalendarDatePicker2Config class

Implementers

Constructors

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})

Properties

calendarType CalendarDatePicker2Type
The enabled date picker mode
final
calendarViewMode DatePickerMode
The initially displayed view of the calendar picker.
final
cantidadMesesAMostrar int
getter/setter pair
centerAlignModePicker bool?
Flag to centralize year and month text label in controls
final
controlsHeight double?
Custom height for calendar control toggle's height
final
controlsTextStyle TextStyle?
Custom text style for calendar mode toggle control
final
currentDate DateTime
The DateTime representing today. It will be highlighted in the day grid.
final
customModePickerIcon Widget?
Custom icon for the mode picker button icon
final
dayBorderRadius BorderRadius?
Custom border radius for day indicator
final
dayBuilder CalendarDayBuilder?
Function to provide full control over day widget UI
final
dayTextStyle TextStyle?
Custom text style for all calendar days
final
dayTextStylePredicate CalendarDayTextStylePredicate?
Function to provide full control over calendar days text style
final
deshabilitarFinDeSemana bool
final
disabledDayTextStyle TextStyle?
Custom text style for disabled calendar day(s)
final
disableModePicker bool?
Flag to disable mode picker and hide the mode toggle button icon
final
firstDate DateTime
The earliest allowable DateTime that the user can select.
final
firstDayOfWeek int?
Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday.
final
hashCode int
The hash code for this object.
no setterinherited
lastDate DateTime
The latest allowable DateTime that the user can select.
final
lastMonthIcon Widget?
Custom icon for last month button control
final
modePickerTextHandler CalendarModePickerTextHandler?
Function to control mode picker displayed text
final
mostrarPrimeroMesActual bool
final
nextMonthIcon Widget?
Custom icon for next month button control
final
rangeBidirectional bool
Whether the range selection can be also made in reverse-chronological order. Only applicable when calendarType is CalendarDatePicker2Type.range.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectableDayPredicate SelectableDayPredicate?
Function to provide full control over which dates in the calendar can be selected.
final
selectedDayHighlightColor Color?
The highlight color for selected day(s)
final
selectedDayTextStyle TextStyle?
Custom text style for selected calendar day(s)
final
selectedRangeDayTextStyle TextStyle?
Custom text style for selected range calendar day(s)
final
selectedRangeHighlightColor Color?
The highlight color for day(s) included in the selected range Only applicable when calendarType is CalendarDatePicker2Type.range
final
selectedYearTextStyle TextStyle?
final
todayTextStyle TextStyle?
Custom text style for today
final
weekdayLabels List<String>?
Custom weekday labels for the current locale, MUST starts from Sunday Examples:
final
weekdayLabelTextStyle TextStyle?
Custom text style for weekday labels
final
yearBorderRadius BorderRadius?
Custom border radius for year indicator
final
yearBuilder CalendarYearBuilder?
Function to provide full control over year widget UI
final
yearTextStyle TextStyle?
final

Methods

copyWith({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, TextStyle? selectedRangeDayTextStyle, BorderRadius? dayBorderRadius, BorderRadius? yearBorderRadius, SelectableDayPredicate? selectableDayPredicate, CalendarDayTextStylePredicate? dayTextStylePredicate, CalendarDayBuilder? dayBuilder, CalendarYearBuilder? yearBuilder, bool? disableModePicker, bool? centerAlignModePicker, Widget? customModePickerIcon, CalendarModePickerTextHandler? modePickerTextHandler, bool? rangeBidirectional, bool? deshabilitarFinDeSemana, bool? mostrarPrimeroMesActual, int? cantidadMesesAMostrar}) CalendarDatePicker2Config
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited