flutter_date_range_picker library
Classes
- CalendarTheme
- A customizable theme for the calendar widget.
- CalendarWidgetController
- A controller that handles the logic of the calendar widget.
- DateRange
- A model that represents a date range. It is used to represent the selected date range in the calendar.
- DateRangeField
- A StatelessWidget that provides a field to select a date range dateRange.
- DateRangeFormField
- A FormField that wraps a DateRangeField and integrates with a form.
- DateRangePickerDialog
- A dialog for selecting a date range dateRange.
- The default footer for the dateRange picker dialog.
- DateRangePickerWidget
- A widget that displays a date range picker.
- DateRangePickerWidgetState
- DayModel
- A model that represents a day in the calendar. It possesses all the information needed to display the corresponding day tile in the calendar.
- DayNamesRow
- A widget that displays the names of the days of the week for the date range picker.
- DayTileWidget
- A widget that represents a day tile for a calendar.
- EnrichedMonthWrapWidget
- A widget that displays a vertical column of days in a month grid, along with the day names row.
- MonthSelectorAndDoubleIndicator
- A widget that displays the current and next month in a row along with navigation arrows.
- MonthWrapWidget
- A widget that displays a wrap of a month's worth of day tiles.
- QuickDateRange
- A model that represents a quick selection dateRange in the quick selection widget. The date range is required but can be null. If null, the quick selection will reset the selected date range.
- QuickSelectorWidget
- A widget that displays a list of quick dateRanges that can be selected.
- RangePickerController
- A controller that handles the logic of the date range picker.
Constants
- kTheme → const CalendarTheme
- The default CalendarTheme used by the date range picker.
Functions
-
defaultWeekDays(
) → List< String> - Returns the default week days as strings (using intl).
-
kDayTileBuilder(
DayModel dayModel, CalendarTheme theme, ValueChanged< DateTime> onTap) → Widget - A function that builds a day tile for the date range picker.
-
showDateRangePickerDialog(
{required BuildContext context, required DateRangerPickerWidgetBuilder builder, Color barrierColor = Colors.transparent, Offset? offset}) → Future< DateRange?> - A function to show the dateRange picker dialog.
-
showDateRangePickerDialogOnWidget(
{required BuildContext widgetContext, required DateRangerPickerWidgetBuilder pickerBuilder, BuildContext? context, Color barrierColor = Colors.transparent, Offset delta = const Offset(0, 60)}) → Future< DateRange?> - A function to show the dateRange picker dialog on a widget.