duration_picker 2.0.0
duration_picker: ^2.0.0 copied to clipboard
A time picker widget that can select both minutes and hours. Fork from flutter_duration_picker.
1.2.0 #
- Add localization options
- Update deprecated functions
- Add upper and lower bound for duration
2.0.0 - 2026-10-16 #
⚠ BREAKING CHANGES #
DurationPickerDialogStateand itsselectedDurationgetter are no longer public. Read the selected duration from theFuturereturned byshowDurationPicker, or fromshowDialogwhen showingDurationPickerDialogyourself.- The picker's default colors now come from the color scheme. The handle and elapsed ring use
ColorScheme.primaryinstead ofsecondary, on Material 3 the ring usessurfaceContainerHighestinstead ofColors.grey[200](orsurfacein dark mode), and the middle of the dial is transparent instead ofcanvasColor; setDurationPickerThemeData(handColor: colorScheme.secondary)to get the old hand color back.showDurationPickeralso no longer paints its content withColorScheme.surface, so the dialog keeps its own background color and rounded shape; passdecoration: BoxDecoration(color: colorScheme.surface)for the old look. DialPainteris no longer exported; it couldn't be passed to the picker, so it had no use outside the package. The deprecatedsnapToMinsparameter ofDurationPickeris removed; it was never used, so drop the argument.
Features #
- make the dial adjustable with screen readers (#57) (c9a63da)
- style the picker through DurationPickerThemeData (#53) (3049350)
Bug Fixes #
- dispose the dial's text painters and curved animation (#55) (b4603a7)
- scale the dial labels with the system text size (#56) (f21d52e)
Code Refactoring #
1.3.0 - 2026-10-16 #
Features #
- add an optional title to the duration picker dialog (#46) (080ae39)
- add German localization (#31) (1524d8d)
Bug Fixes #
- allow dragging past 15 minutes in the first hour (#42) (62723e5)
- apply upperBound and lowerBound in showDurationPicker (#40) (c735cea)
- keep the dial in sync when the parent changes the duration or bounds (#48) (2288183)
- keep the initial time of showDurationPicker within its bounds (#43) (c925e1d)
- let the dial win drags inside a scroll view (#45) (243aac0)
- replace deprecated APIs and raise minimum Flutter to 3.27 (#36) (c8dae93)
- select a value by tapping the dial (#44) (f0f4d8c)
1.1.1 #
Switched to lint and applied all suggested lints.
1.1.0+1 #
New Features
- It is now possible to select the base unit of the timer using baseunit: parameter. See example app for an example.
1.0.1 #
Bug fixes
- Updated example app
1.0.0 #
Breaking Changes
- Added null-safety
New Features
- Popup duration picker with box decoration
Bug fixes
- Fixed Method not found: 'ButtonTheme.bar'
Changelog from flutter_duration_picker #
1.0.4 Oct 23, 2018 #
- Fixed bug showing 60mins when approaching 0.
1.0.3 Aug 01, 2018 #
- Fixed bug returning false from void function
