Package selection guidance compiled from public package information, community data, and project usage.
A Flutter package offering customizable date pickers for selecting days, weeks, date ranges, and months. It supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The package provides a consistent and intuitive UI for date selection with easy integration into Flutter apps. Designed to be flexible and extensible, it allows developers to tailor the appearance and behavior of pickers to match app design requirements. Ideal for forms, scheduling tools, and calendar-based applications.
Use cases
Form inputs requiring date selection
Scheduling and booking systems
Calendar and planner apps
Date range filtering
Event creation interfaces
Key features
Day, week, range, and month picker types
Cross-platform compatibility
Customizable UI themes
Easy integration with Flutter
Support for localization
Configurable date ranges
Suitable for
Developers building calendar features
Apps needing advanced date selection
Projects requiring multi-platform date pickers
UI-heavy form components
Considerations
Requires Flutter SDK 2.5 or higher
May need additional styling for custom themes
Limited built-in validation
Depends on platform-specific date handling
Not optimized for very large date ranges
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter_date_pickers
Allows to use date pickers without dialog.
Provides some customizable styles for date pickers.
A set of date pickers:
DayPicker for one day
WeekPicker for whole week
RangePicker for random range
MonthPicker for month
YearPicker for year
How to style date picker
Every date picker constructor take a style object as a parameter (if no styles passed - defaults will be used).
For single value pickers (DayPicker, MonthPicker) it is DatePickerStyles object;
For range pickers (WeekPicker, RangePickers) it is DatePickerRangeStyles object;
Customizable styles:
for all date pickers
Property
Description
TextStyle displayedPeriodTitle
title of the date picker
TextStyle currentDateStyle
style for current date
TextStyle disabledDateStyle
style for disabled dates (before first and after last date user can pick)
TextStyle selectedDateStyle
style for selected date
BoxDecoration selectedSingleDateDecoration
decoration for selected date in case single value is selected
TextStyle defaultDateTextStyle
style for date which is neither current nor disabled nor selected
DayHeaderStyle dayHeaderStyle
style for all weekday headers. For more control under weekday headers styles use dayHeaderStyleBuilder
DayHeaderStyleBuilder dayHeaderStyleBuilder
builder to customize weekday header's style
DayHeaderTitleBuilder dayHeaderTitleBuilder
builder to customize weekday header's title
only for range date pickers (WeekPicker, RangePicker)
Property
Description
BoxDecoration selectedPeriodStartDecoration
decoration for the first date of the selected range
BoxDecoration selectedPeriodLastDecoration
decoration for the first date of the selected range
BoxDecoration selectedPeriodMiddleDecoration
Decoration for the date of the selected range which is not first date and not end date of this range
How to make some dates not selectable date picker
By default only dates before firstDate and after lastDate are not selectable. But you can set custom disabled days.
DayPicker, WeekPicker and RangePicker take a SelectableDayPredicate selectableDayPredicate
where you can specify function which returns if some date is disabled or not.
If some date is disabled for selection it gets disabledDateStyle.
If selected range or week pretends to include such disabled date UnselectablePeriodException occurs.
To handle it - pass onSelectionError callback to date picker.
How to make special decorations for some dates
By default cells are decorated with datePickerStyles slyles (or default if no styles was passed to date picker).
If you need special decoration for some days use eventDecorationBuilder.
Currently only for DayPicker, WeekPicker and RangePicker.
If date is not selected basic styles will be merged with styles from eventDecorationBuilder.
If date is current date styles from eventDecorationBuilder win (if there are).
Otherwise basic styles (datePickerStyles) win.
What time I will get after selection?
If one day selected:
you will get start of the day (00:00:00).
If range/week selected:
for start you will get start of the day (00:00:00) by default.
for end you will get end of the day (23:59:59.999) by default.
If month selected:
you will get start (00:00:00) of the 1 day of month by default.
If selected month same as month of the firstDate - you will get firstDate.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.