DatePickerStyles class

Common styles for date pickers.

To define more styles for date pickers which allow select some range (e.g. RangePicker, WeekPicker) use DatePickerRangeStyles.

Implementers
Annotations

Constructors

DatePickerStyles({TextStyle? displayedPeriodTitle, TextStyle? currentDateStyle, TextStyle? disabledDateStyle, TextStyle? selectedDateStyle, BoxDecoration? selectedSingleDateDecoration, TextStyle? defaultDateTextStyle, DayHeaderStyle? dayHeaderStyle, DayHeaderStyleBuilder? dayHeaderStyleBuilder, DayHeaderTitleBuilder? dayHeaderTitleBuilder, int? firstDayOfeWeekIndex, Widget prevIcon = const Icon(Icons.chevron_left), Widget nextIcon = const Icon(Icons.chevron_right)})
Styles for date picker.

Properties

currentDateStyle TextStyle?
Style for the number of current date.
final
dayHeaderStyle DayHeaderStyle?
Style for the day header.
final
dayHeaderStyleBuilder DayHeaderStyleBuilder?
Builder to customize styles for day headers depends on day of the week. Where 0 points to Sunday and 6 points to Saturday.
final
dayHeaderTitleBuilder DayHeaderTitleBuilder?
Builder to customize titles for day headers depends on day of the week. Where 0 points to Sunday and 6 points to Saturday.
final
defaultDateTextStyle TextStyle?
Used for date which is neither current nor disabled nor selected.
final
disabledDateStyle TextStyle?
Style for the numbers of disabled dates.
final
displayedPeriodTitle TextStyle?
Styles for title of displayed period (e.g. month for day picker and year for month picker).
final
firstDayOfeWeekIndex int?
Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday. Must not be less 0 or more then 6.
final
hashCode int
The hash code for this object.
no setteroverride
nextIcon Widget
Widget which will be shown right side of the shown page title. User goes to next data period by click on it.
final
prevIcon Widget
Widget which will be shown left side of the shown page title. User goes to previous data period by click on it.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDateStyle TextStyle?
Style for the number of selected date.
final
selectedSingleDateDecoration BoxDecoration?
Day cell decoration for selected date in case only one date is selected.
final

Methods

fulfillWithTheme(ThemeData theme) DatePickerStyles
Return new DatePickerStyles object where fields with null values set with defaults from theme.
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.
override