Skip to main content

duration_picker 2.0.0 copy "duration_picker: ^2.0.0" to clipboard
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 #

  • DurationPickerDialogState and its selectedDuration getter are no longer public. Read the selected duration from the Future returned by showDurationPicker, or from showDialog when showing DurationPickerDialog yourself.
  • The picker's default colors now come from the color scheme. The handle and elapsed ring use ColorScheme.primary instead of secondary, on Material 3 the ring uses surfaceContainerHighest instead of Colors.grey[200] (or surface in dark mode), and the middle of the dial is transparent instead of canvasColor; set DurationPickerThemeData(handColor: colorScheme.secondary) to get the old hand color back. showDurationPicker also no longer paints its content with ColorScheme.surface, so the dialog keeps its own background color and rounded shape; pass decoration: BoxDecoration(color: colorScheme.surface) for the old look.
  • DialPainter is no longer exported; it couldn't be passed to the picker, so it had no use outside the package. The deprecated snapToMins parameter of DurationPicker is 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 #

  • make DialPainter private and remove snapToMins (ca29d9d)
  • make the dialog state private and export the localizations (#54) (1f7c22a)

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

1.0.2 Jul 25, 2018 #

  • Fixed initial duration when exceeding 1h

[1.0.1] - Jun 26, 2018 #

  • initial release.
126
likes
160
points
12.1k
downloads
screenshot

Documentation

API reference

Publisher

verified publishersteenbakker.dev

Weekly Downloads

A time picker widget that can select both minutes and hours. Fork from flutter_duration_picker.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on duration_picker