duration_picker
2.0.0, released 5 weeks ago by steenbakker.dev
A time picker widget for selecting hours and minutes as durations.
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.
- board_datetime_picker
Picker to select date and time for Flutter. It is both a calendar and a picker, offering a variety of options as a package.
87Compare - bottom_picker
A customizable bottom sheet picker widget for lists, dates, and times.
85Compare - flutter_datetime_picker_plus
A customizable date and time picker supporting multiple languages.
83Compare - direct_select_flutter
A selection widget with a full-screen modal popup for choosing options.
83Compare