modal_date_picker 0.0.9
modal_date_picker: ^0.0.9 copied to clipboard
A customizable modal date picker for Flutter with scroll-based selection. Supports multiple locales, date ranges, and real-time TextEditingController updates.
0.0.9 #
🐛 Bug Fixes #
- Fixed date reset on column change: Previously, selecting a day (e.g., 10) and then scrolling to change the month would reset the day back to 1. Now the selected day is preserved when switching between year, month, and day columns.
- Fixed scroll not updating TextEditingController: Scrolling a column now updates the date immediately (same behavior as tapping). Previously, only tapping would trigger the update.
- Fixed cascading callback issues: Eliminated race conditions caused by
jumpToItemtriggering unintendedonSelectedItemChangedcallbacks in other columns.
♻️ Refactored #
- Complete rewrite of
ScrollDatePickerinternal logic: Replaced complexNotificationListener+_activeColumntracking with a simpler and more reliable approach usingonSelectedItemChangeddirectly with a single_silentflag. - Simplified
DateScrollView: MadeonChangedcallback optional for better flexibility. - Removed
didUpdateWidgetdependency: The widget now fully owns its internal date state, preventing the parent from accidentally resetting the selected date.
0.0.8 #
- Adds
minimumDateproperty to set the minimum selectable date - Adds
maximumDateproperty to set the maximum selectable date - Sets
Locale('es', 'ES')as default locale
0.0.1 #
- Initial release