Skip to content
pubscout

date_picker_timeline

1.4.0, released 3 months ago by vivekkaushik.com

Flutter date picker library that renders a calendar as a horizontal timeline.

WASM-ready
$ flutter pub add date_picker_timeline
Source repository

What it does

Provides a horizontal timeline widget for selecting dates, weeks, or months. Supports single, multiple, and range selection modes, customizable appearance, localized day and month names, and a controller for programmatic scrolling and selection management.

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

Use it when

  • You need a horizontal calendar strip or date timeline UI
  • Users need to select single dates, multiple dates, or a date range visually
  • You want support for custom granularities like week or month tiles

Skip it when

  • You need a traditional grid-style popup or dropdown calendar picker
  • You require complex event indicators or scheduling capabilities on the calendar

Strengths

  • Supports multiple selection modes including single, multiple, and range
  • Offers week and month granularities alongside daily views
  • Includes a DatePickerController for programmatic navigation and selection
  • Supports Persian (Jalali) and Gregorian calendars

Weaknesses

  • Limited to a horizontal timeline layout rather than full grid calendars

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
DatePicker(
  DateTime.now(),
  initialSelectedDate: DateTime.now(),
  selectionColor: Colors.black,
  selectedTextColor: Colors.white,
  onDateChange: (date) {
    setState(() => _selectedDate = date);
  },
)

Alternatives

Packages that do the same job and could replace date_picker_timeline.

Works with

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