material_drum_picker 1.2.0
material_drum_picker: ^1.2.0 copied to clipboard
A Material 3 date picker with an iOS-style drum roller, full API parity with showDatePicker and CupertinoDatePicker, and drum, calendar and input modes.
Changelog #
1.2.0 #
- Time-only picking. New
DrumTimePickerwidget andshowDrumTimePickerfunction that return aTimeOfDay. Configurable for AM/PM (12 hour) or 24 hour mode viause24hFormat(which falls back toMediaQuery.alwaysUse24HourFormat), withminuteIntervalgranularity. - Example app gains a "Time only" screen (12 hour dialog, 24 hour dialog with 5 minute steps, and an inline 15 minute picker).
- README rewritten and expanded: a pickers overview table plus dedicated date+time and time-only screenshots.
1.1.0 #
- Date + time picking.
DrumPickergainspickTime,use24hFormat, andminuteInterval. WhenpickTimeis true, a compact time drum strip (hour, minute, and AM/PM in 12-hour mode) appears below the date selector and the confirmed value includes the chosen time. - New
showDrumDateTimePickerconvenience function, the same API asshowDrumDatePickerbut returns aDateTimethat carries the time. use24hFormatfalls back toMediaQuery.alwaysUse24HourFormat; AM/PM labels and the header time are localized.minuteIntervalsnaps the initial minute and is asserted to divide 60.
1.0.0 #
Initial release.
showDrumDatePicker, a drop-in replacement for Flutter'sshowDatePickerwith full parameter parity (firstDate,lastDate,initialDate,currentDate,selectableDayPredicate,helpText,confirmText,cancelText,errorFormatText,errorInvalidText,fieldHintText,fieldLabelText,locale,textDirection,barrierDismissible,barrierColor,barrierLabel,useRootNavigator,routeSettings,restorationId,anchorPoint,builder).DrumPickerinline widget for embedding in forms (no dialog).- Three context-aware input modes:
drum,calendar, andinput, with a mode toggle. selectableDayPredicateenforced in all three modes, including nearest-valid-date snapping in drum mode.- Quick-select chips with
quickSelectOptionsandDrumQuickSelect.relative. - Configurable
columnOrder(dmy/mdy/ymd/ydm) with locale-aware defaults, plusshowDayOfWeekInDrum. DrumPickerThemeextension for Material 3 token overrides.- Full RTL and localization support via
intlandflutter_localizations. showDrumDateRangePickerAPI stub (throwsUnimplementedError; full implementation planned for 1.1.0).