calendar_timeline
1.1.3, released 2 years ago by talhasultan.dev
A horizontal date picker widget taking up little screen space.
WASM-ready
What it does
Provides a horizontal timeline-style date picker widget that allows users to select dates with one hand. It includes options for customizing colors, locale, and selectable day predicates.
AI-written summary of version 1.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a compact, always-visible date picker.
- Users need to select dates easily using one hand in a horizontal scrolling timeline.
Skip it when
- You need a traditional dropdown or popup calendar picker.
- You require complex date-range selections or time picking.
Strengths
- Takes up very little screen space.
- Supports custom colors, locales, and day predicates.
Weaknesses
- Limited to horizontal timeline date selection.
- No built-in support for date-range picking.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
CalendarTimeline(
initialDate: DateTime(2020, 4, 20),
firstDate: DateTime(2019, 1, 15),
lastDate: DateTime(2020, 11, 20),
onDateSelected: (date) => print(date),
leftMargin: 20,
monthColor: Colors.blueGrey,
dayColor: Colors.teal[200],
activeDayColor: Colors.white,
activeBackgroundDayColor: Colors.redAccent[100],
dotsColor: Color(0xFF333A47),
selectableDayPredicate: (date) => date.day != 23,
locale: 'en_ISO',
)Alternatives
Packages that do the same job and could replace calendar_timeline.
- calendar_date_picker2
Pick it if you need a standard calendar dialog or date picker grid instead of a horizontal timeline.
83Compare
Works with
Packages commonly used together with calendar_timeline: ones it builds on, ones built on it, and its own family.
- intlcalendar_timeline depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- scrollable_positioned_listcalendar_timeline depends on itA Flutter list with helper methods to programmatically scroll to an item.