scroll_datetime_picker
0.2.2, released a year ago by auliyaa.com
A scrollable datetime picker widget inspired by CupertinoDatePicker with extensive customization.
What it does
Provides a scrollable date and time picker widget for Flutter applications. It supports customizable formats, locales, appearance, scroll physics, and programmatic control via a controller.
AI-written summary of version 0.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a Cupertino-style date and time picker wheel with rich customization options.
- You require custom date/time ordering, formatting, or localization using the intl package.
Skip it when
- You only need standard platform native pickers (e.g. showDatePicker).
- You do not need scroll-wheel style selections.
Strengths
- Highly customizable appearance, text styles, and scroll wheel options.
- Supports both finite and infinite scrolling.
- Includes smart detection for invalid dates and leap years.
- Provides programmatic control via DateTimePickerController.
Weaknesses
- Relies on external intl package formatting limitations.
- Not the standard Material Design picker style by default.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
ScrollDateTimePicker(
itemExtent: 54,
infiniteScroll: true,
dateOption: DateTimePickerOption(
dateFormat: DateFormat('yyyyMMMdd'),
minDate: DateTime(2000, 6),
maxDate: DateTime(2024, 6),
),
onChange: (datetime) => setState(() {}),
)Alternatives
Packages that do the same job and could replace scroll_datetime_picker.
- omni_datetime_picker
A datetime picker package with option for a single datetime picker or a datetime range picker.
87Compare - table_calendar
Highly customizable, feature-packed calendar widget for Flutter
83Compare - searchfield
An autocomplete search widget with customizable suggestions, validation, and keyboard navigation.
79Compare - calendar_date_picker2
A customizable Flutter calendar picker with single, multi, and range selection modes.
83Compare
Works with
Packages commonly used together with scroll_datetime_picker: ones it builds on, ones built on it, and its own family.
- intlscroll_datetime_picker depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- mockitoscroll_datetime_picker depends on itA mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.