CalendarDatePicker2WithActionButtonsConfig class

Custom configuration for CalendarDatePicker2 with action buttons

Inheritance

Constructors

CalendarDatePicker2WithActionButtonsConfig({CalendarDatePicker2Type? calendarType, DateTime? firstDate, DateTime? lastDate, DateTime? currentDate, CalendarDatePicker2Mode? calendarViewMode, List<String>? weekdayLabels, TextStyle? weekdayLabelTextStyle, WeekdayLabelBuilder? weekdayLabelBuilder, int? firstDayOfWeek, double? controlsHeight, Widget? lastMonthIcon, bool? hideLastMonthIcon, Widget? nextMonthIcon, bool? hideNextMonthIcon, TextStyle? controlsTextStyle, bool? animateToDisplayedMonthDate, Map<CalendarDatePicker2SemanticsLabel, String?>? semanticsDictionary, bool? disableVibration, PageController? dayViewController, TextStyle? dayTextStyle, TextStyle? selectedDayTextStyle, Color? selectedDayHighlightColor, Color? selectedRangeHighlightColor, TextStyle? disabledDayTextStyle, TextStyle? todayTextStyle, TextStyle? yearTextStyle, TextStyle? selectedYearTextStyle, TextStyle? disabledYearTextStyle, TextStyle? selectedRangeDayTextStyle, TextStyle? monthTextStyle, TextStyle? selectedMonthTextStyle, TextStyle? disabledMonthTextStyle, BorderRadius? dayBorderRadius, BorderRadius? yearBorderRadius, BorderRadius? monthBorderRadius, SelectableDayPredicate? selectableDayPredicate, SelectableMonthPredicate? selectableMonthPredicate, SelectableYearPredicate? selectableYearPredicate, DayTextStylePredicate? dayTextStylePredicate, DayBuilder? dayBuilder, YearBuilder? yearBuilder, MonthBuilder? monthBuilder, ScrollController? monthViewController, ScrollController? yearViewController, bool? disableModePicker, bool? centerAlignModePicker, Widget? customModePickerIcon, ModePickerTextHandler? modePickerTextHandler, ModePickerBuilder? modePickerBuilder, double? modePickersGap, bool? rangeBidirectional, ScrollPhysics? calendarViewScrollPhysics, Color? daySplashColor, bool? allowSameValueSelection, bool? disableMonthPicker, bool? useAbbrLabelForMonthModePicker, double? dayMaxWidth, bool? hideMonthPickerDividers, bool? hideYearPickerDividers, TextStyle? scrollViewTopHeaderTextStyle, bool? hideScrollViewTopHeader, bool? hideScrollViewTopHeaderDivider, bool? hideScrollViewMonthWeekHeader, BoxConstraints? scrollViewConstraints, ScrollViewMonthYearBuilder? scrollViewMonthYearBuilder, ScrollViewOnScrolling? scrollViewOnScrolling, ScrollController? scrollViewController, bool? dynamicCalendarRows, Axis? dayModeScrollDirection, SelectedRangeHighlightBuilder? selectedRangeHighlightBuilder, SelectedRangeDecorationPredicate? selectedRangeDecorationPredicate, double? gapBetweenCalendarAndButtons, TextStyle? cancelButtonTextStyle, Widget? cancelButton, TextStyle? okButtonTextStyle, Widget? okButton, bool? openedFromDialog, bool? closeDialogOnCancelTapped, bool? closeDialogOnOkTapped, EdgeInsets? buttonPadding})

Properties

allowSameValueSelection bool?
When set to true, onValueChanged will be called on the same value selection
finalinherited
animateToDisplayedMonthDate bool?
Flag to always animate to the displayedMonthDate
finalinherited
buttonPadding EdgeInsets?
Custom wrapping padding for Ok & Cancel buttons
final
calendarType CalendarDatePicker2Type
The enabled date picker mode
finalinherited
calendarViewMode CalendarDatePicker2Mode
The initially displayed view of the calendar picker.
finalinherited
calendarViewScrollPhysics ScrollPhysics?
The scroll physics for the calendar month view
finalinherited
cancelButton Widget?
Custom cancel button
final
cancelButtonTextStyle TextStyle?
Text style for cancel button
final
centerAlignModePicker bool?
Flag to centralize year and month text label in controls
finalinherited
closeDialogOnCancelTapped bool?
If the dialog should be closed when user taps the CANCEL button
final
closeDialogOnOkTapped bool?
If the dialog should be closed when user taps the OK button
final
controlsHeight double?
Custom height for calendar control toggle's height
finalinherited
controlsTextStyle TextStyle?
Custom text style for calendar mode toggle control
finalinherited
currentDate DateTime
The DateTime representing today. It will be highlighted in the day grid.
finalinherited
customModePickerIcon Widget?
Custom icon for the mode picker button icon
finalinherited
dayBorderRadius BorderRadius?
Custom border radius for day indicator
finalinherited
dayBuilder DayBuilder?
Function to provide full control over day widget UI
finalinherited
dayMaxWidth double?
Max width of day widget. When dayMaxWidth is not null, it will override default size settings
finalinherited
dayModeScrollDirection Axis?
Axis scroll direction for CalendarDatePicker2Mode.day mode
finalinherited
daySplashColor Color?
The splash color of the day widget
finalinherited
dayTextStyle TextStyle?
Custom text style for all calendar days
finalinherited
dayTextStylePredicate DayTextStylePredicate?
Function to provide full control over calendar days text style
finalinherited
dayViewController PageController?
Custom page controller for the calendar day view mode
finalinherited
disabledDayTextStyle TextStyle?
Custom text style for disabled calendar day(s)
finalinherited
disabledMonthTextStyle TextStyle?
Custom text style for disabled month(s)
finalinherited
disabledYearTextStyle TextStyle?
Custom text style for disabled year(s)
finalinherited
disableModePicker bool?
Flag to disable mode picker and hide the mode toggle button icon
finalinherited
disableMonthPicker bool?
Flag to disable month picker
finalinherited
disableVibration bool?
Flag to disable vibration on date selection
finalinherited
dynamicCalendarRows bool?
Flag to enable dynamic calendar rows based on specific month
finalinherited
firstDate DateTime
The earliest allowable DateTime that the user can select.
finalinherited
firstDayOfWeek int?
Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday.
finalinherited
gapBetweenCalendarAndButtons double?
The gap between calendar and action buttons
final
hashCode int
The hash code for this object.
no setterinherited
hideLastMonthIcon bool?
Flag to hide last month icon
finalinherited
hideMonthPickerDividers bool?
Flag to hide dividers on month picker
finalinherited
hideNextMonthIcon bool?
Flag to hide next month icon
finalinherited
hideScrollViewMonthWeekHeader bool?
Flag to hide month calendar week labels header on scroll view
finalinherited
hideScrollViewTopHeader bool?
Flag to hide top week labels header on scroll view
finalinherited
hideScrollViewTopHeaderDivider bool?
Flag to hide top week labels header divider on scroll view
finalinherited
hideYearPickerDividers bool?
Flag to hide dividers on year picker
finalinherited
lastDate DateTime
The latest allowable DateTime that the user can select.
finalinherited
lastMonthIcon Widget?
Custom icon for last month button control
finalinherited
modePickerBuilder ModePickerBuilder?
Function to provide full control over mode picker UI
finalinherited
modePickersGap double?
Custom gap distance between month and year mode pickers
finalinherited
modePickerTextHandler ModePickerTextHandler?
Function to control mode picker displayed text
finalinherited
monthBorderRadius BorderRadius?
Custom border radius for month indicator
finalinherited
monthBuilder MonthBuilder?
Function to provide full control over month widget UI
finalinherited
monthTextStyle TextStyle?
Custom text style for month list
finalinherited
monthViewController ScrollController?
Custom scroll controller for the calendar month view
finalinherited
nextMonthIcon Widget?
Custom icon for next month button control
finalinherited
okButton Widget?
Custom ok button
final
okButtonTextStyle TextStyle?
Text style for ok button
final
openedFromDialog bool?
Is the calendar opened from dialog
final
rangeBidirectional bool?
Whether the range selection can be also made in reverse-chronological order. Only applicable when calendarType is CalendarDatePicker2Type.range.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollViewConstraints BoxConstraints?
BoxConstraints for the scroll calendar view, only work for scroll mode
finalinherited
scrollViewController ScrollController?
Custom scroll controller to the scroll calendar view
finalinherited
scrollViewMonthYearBuilder ScrollViewMonthYearBuilder?
Function to provide full control over scroll calendar month year UI
finalinherited
scrollViewOnScrolling ScrollViewOnScrolling?
Function to callback over scrolling on scroll view
finalinherited
scrollViewTopHeaderTextStyle TextStyle?
Custom text style for scroll view top week labels header
finalinherited
selectableDayPredicate SelectableDayPredicate?
Function to provide full control over which dates in the calendar can be selected.
finalinherited
selectableMonthPredicate SelectableMonthPredicate?
Function to provide full control over which month in the month list can be selected.
finalinherited
selectableYearPredicate SelectableYearPredicate?
Function to provide full control over which year in the year list be selected.
finalinherited
selectedDayHighlightColor Color?
The highlight color for selected day(s)
finalinherited
selectedDayTextStyle TextStyle?
Custom text style for selected calendar day(s)
finalinherited
selectedMonthTextStyle TextStyle?
Custom text style for selected month(s)
finalinherited
selectedRangeDayTextStyle TextStyle?
Custom text style for selected range calendar day(s)
finalinherited
selectedRangeDecorationPredicate SelectedRangeDecorationPredicate?
Predicate to determine the day widget box decoration for a day in selected range
finalinherited
selectedRangeHighlightBuilder SelectedRangeHighlightBuilder?
Function to provide full control over range picker highlight
finalinherited
selectedRangeHighlightColor Color?
The highlight color for day(s) included in the selected range Only applicable when calendarType is CalendarDatePicker2Type.range
finalinherited
selectedYearTextStyle TextStyle?
Custom text style for selected year(s)
finalinherited
semanticsDictionary Map<CalendarDatePicker2SemanticsLabel, String?>?
Custom dictionary for semantics labels
finalinherited
todayTextStyle TextStyle?
Custom text style for today
finalinherited
useAbbrLabelForMonthModePicker bool?
Use Abbreviation label for month mode picker, only works when month picker is enabled
finalinherited
weekdayLabelBuilder WeekdayLabelBuilder?
Function to provide full control over weekday label widget
finalinherited
weekdayLabels List<String>?
Custom weekday labels for the current locale, MUST starts from Sunday Examples:
finalinherited
weekdayLabelTextStyle TextStyle?
Custom text style for weekday labels
finalinherited
yearBorderRadius BorderRadius?
Custom border radius for year indicator
finalinherited
yearBuilder YearBuilder?
Function to provide full control over year widget UI
finalinherited
yearTextStyle TextStyle?
Custom text style for years list
finalinherited
yearViewController ScrollController?
Custom scroll controller for the calendar year view
finalinherited

Methods

copyWith({CalendarDatePicker2Type? calendarType, DateTime? firstDate, DateTime? lastDate, DateTime? currentDate, CalendarDatePicker2Mode? calendarViewMode, List<String>? weekdayLabels, TextStyle? weekdayLabelTextStyle, WeekdayLabelBuilder? weekdayLabelBuilder, int? firstDayOfWeek, double? controlsHeight, Widget? lastMonthIcon, bool? hideLastMonthIcon, Widget? nextMonthIcon, bool? hideNextMonthIcon, TextStyle? controlsTextStyle, bool? animateToDisplayedMonthDate, Map<CalendarDatePicker2SemanticsLabel, String?>? semanticsDictionary, bool? disableVibration, PageController? dayViewController, TextStyle? dayTextStyle, TextStyle? selectedDayTextStyle, TextStyle? selectedRangeDayTextStyle, Color? selectedDayHighlightColor, Color? selectedRangeHighlightColor, TextStyle? disabledDayTextStyle, TextStyle? todayTextStyle, TextStyle? yearTextStyle, TextStyle? selectedYearTextStyle, TextStyle? disabledYearTextStyle, TextStyle? monthTextStyle, TextStyle? selectedMonthTextStyle, TextStyle? disabledMonthTextStyle, BorderRadius? dayBorderRadius, BorderRadius? yearBorderRadius, BorderRadius? monthBorderRadius, SelectableDayPredicate? selectableDayPredicate, SelectableMonthPredicate? selectableMonthPredicate, SelectableYearPredicate? selectableYearPredicate, DayTextStylePredicate? dayTextStylePredicate, DayBuilder? dayBuilder, YearBuilder? yearBuilder, MonthBuilder? monthBuilder, ScrollController? monthViewController, ScrollController? yearViewController, bool? disableModePicker, bool? centerAlignModePicker, Widget? customModePickerIcon, ModePickerTextHandler? modePickerTextHandler, ModePickerBuilder? modePickerBuilder, double? modePickersGap, double? gapBetweenCalendarAndButtons, TextStyle? cancelButtonTextStyle, Widget? cancelButton, TextStyle? okButtonTextStyle, Widget? okButton, bool? openedFromDialog, bool? closeDialogOnCancelTapped, bool? closeDialogOnOkTapped, EdgeInsets? buttonPadding, bool? rangeBidirectional, ScrollPhysics? calendarViewScrollPhysics, Color? daySplashColor, bool? allowSameValueSelection, bool? disableMonthPicker, bool? useAbbrLabelForMonthModePicker, double? dayMaxWidth, bool? hideMonthPickerDividers, bool? hideYearPickerDividers, TextStyle? scrollViewTopHeaderTextStyle, bool? hideScrollViewTopHeader, bool? hideScrollViewTopHeaderDivider, bool? hideScrollViewMonthWeekHeader, BoxConstraints? scrollViewConstraints, ScrollViewMonthYearBuilder? scrollViewMonthYearBuilder, ScrollViewOnScrolling? scrollViewOnScrolling, ScrollController? scrollViewController, bool? dynamicCalendarRows, Axis? dayModeScrollDirection, SelectedRangeHighlightBuilder? selectedRangeHighlightBuilder, SelectedRangeDecorationPredicate? selectedRangeDecorationPredicate}) CalendarDatePicker2WithActionButtonsConfig
Copy the current CalendarDatePicker2Config with some new values
override
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