Skip to content
pubscout

flutter_date_pickers

0.4.3, released 2 years ago by an unverified publisher

Inline day, week, range and month date pickers without dialogs.

WASM-ready
$ flutter pub add flutter_date_pickers
Source repository

What it does

Provides a set of customizable inline date picker widgets (DayPicker, WeekPicker, RangePicker, MonthPicker, YearPicker). Allows styling of dates, disabled dates, and special decorations, and returns DateTime values at selection.

AI-written summary of version 0.4.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an inline date picker that fits into your UI without opening a dialog
  • You want customizable styles for selected, current, and disabled dates
  • You need range or week selection support

Skip it when

  • You require a native platform date picker UI
  • You need a full-featured calendar with events and complex scheduling

Strengths

  • No dialog, fits directly in layout
  • Highly customizable styles and decorations
  • Supports day, week, range, month, and year selections
  • Null‑safe and works on all Flutter platforms

Weaknesses

  • Limited to inline UI, no built‑in dialog variant
  • Customization limited to provided style objects
  • No built‑in support for event calendars or recurring dates

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
Widget buildWeekDatePicker(DateTime selectedDate, DateTime firstAllowedDate, DateTime lastAllowedDate, ValueChanged<DatePeriod> onNewSelected){
  final styles = DatePickerRangeStyles(
    selectedPeriodLastDecoration: BoxDecoration(color: Colors.red),
    selectedPeriodStartDecoration: BoxDecoration(color: Colors.green),
    selectedPeriodMiddleDecoration: BoxDecoration(color: Colors.yellow),
  );
  return WeekPicker(
    selectedDate: selectedDate,
    onChanged: onNewSelected,
    firstDate: firstAllowedDate,
    lastDate: lastAllowedDate,
    datePickerStyles: styles,
  );
}

Alternatives

Packages that do the same job and could replace flutter_date_pickers.

Works with

Packages commonly used together with flutter_date_pickers: ones it builds on, ones built on it, and its own family.