flutter_date_range_picker
0.3.0, released 8 weeks ago by gaspardmerten.dev
Flutter package for selecting date ranges with calendar, dialog, and form field options.
What it does
Provides customizable widgets like DateRangePickerWidget, DateRangeField, and DateRangeFormField to allow users to select date ranges. Supports minimum and maximum date limitations, disabled dates, and custom themes.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to let users pick a start and end date range in a Flutter app.
- You want support for form fields, dialogs, and embedded calendar widgets.
- You need to enforce minimum and maximum date range durations.
Skip it when
- You only need a single date picker rather than a range picker.
- You are using completely custom non-Material design systems where a pre-built calendar UI conflicts heavily.
Strengths
- Provides both inline widgets, form fields, and dialog helpers.
- Supports customizable themes, minimum/maximum range lengths, and disabled dates.
- Responsive layout supporting single or double month displays.
Weaknesses
- Limited to date range picking functionality.
- Relies on standard localization via the intl package rather than custom bespoke setups.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
DateRangeField(
decoration: InputDecoration(
label: Text("Date range picker"),
hintText: 'Please select a date range',
),
onDateRangeSelected: (DateRange? value) {
// Handle the selected date range here
},
selectedDateRange: selectedRange,
);Alternatives
Packages that do the same job and could replace flutter_date_range_picker.
- board_datetime_picker
Picker to select date and time for Flutter. It is both a calendar and a picker, offering a variety of options as a package.
87Compare - omni_datetime_picker
A datetime picker package with option for a single datetime picker or a datetime range picker.
87Compare - calendar_date_picker2
A customizable Flutter calendar picker with single, multi, and range selection modes.
83Compare - date_picker_timeline
Flutter date picker library that renders a calendar as a horizontal timeline.
78Compare
Works with
Packages commonly used together with flutter_date_range_picker: ones it builds on, ones built on it, and its own family.