flutter_date_pickers library

Classes

DatePeriod
Date period.
DatePickerKeys
Keys for some date picker's widgets.
DatePickerLayoutSettings
Settings for the layout of the DayPicker, WeekPicker, RangePicker and MonthPicker.
DatePickerRangeStyles
Styles for date pickers which allow select some range (e.g. RangePicker, WeekPicker).
DatePickerStyles
Common styles for date pickers.
DayHeaderStyle
User styles for the day header in date picker.
DayPicker<T extends Object>
Date picker for selection one day.
EventDecoration
Class to store styles for event (specific day in the date picker).
MonthPicker<T extends Object>
Month picker widget.
RangePicker
Date picker for range selection.
WeekPicker
Date picker for selection a week.
YearPicker<T extends Object>
Year picker widget.

Extensions

FirstDayOfYear on DateTime
Extension for DateTime
FormatYearDateRange on MaterialLocalizations
Returns 2021 - 2022

Typedefs

DayHeaderStyleBuilder = DayHeaderStyle? Function(int dayOfTheWeek)
0 points to Sunday, and 6 points to Saturday.
DayHeaderTitleBuilder = String Function(int dayOfTheWeek, List<String> localizedWeekdayHeaders)
0 points to Sunday, and 6 points to Saturday.
EventDecorationBuilder = EventDecoration? Function(DateTime date)
Signature for function which is used to set set specific decoration for some days in DayPicker, WeekPicker and RangePicker.

Exceptions / Errors

UnselectablePeriodException
Exception thrown when selected period contains custom disabled days.