Skip to content
pubscout

duration_picker

2.0.0, released 5 weeks ago by steenbakker.dev

A time picker widget for selecting hours and minutes as durations.

WASM-ready
$ flutter pub add duration_picker
Source repository

What it does

Provides a Material Design-inspired dial widget and dialog for picking durations like hours and minutes. Users can drag the dial around or tap values to select time.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a user to select a specific duration of time such as for timers or snooze settings.
  • You want an interactive dial component that matches Material Design principles.

Skip it when

  • You need a standard date picker or calendar instead of a duration.
  • You need a standard text-based time of day picker (use the built-in showTimePicker).

Strengths

  • Supports both inline embedding and dialog display modes.
  • Customizable via themes and supports localization for multiple languages.
  • Accessible with screen reader support.

Weaknesses

  • Limited built-in language translations (only English, German, and Korean currently documented).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

final duration = await showDurationPicker(
  context: context,
  initialTime: const Duration(minutes: 30),
  title: const Text('Snooze for'),
);

Alternatives

Packages that do the same job and could replace duration_picker.