material_duration_picker library
A duration picker using the material design of the time picker.
Classes
- DefaultMaterialDurationPickerLocalizations
- DurationPickerDialog
- A Material Design time picker designed to appear inside a popup dialog.
- GlobalMaterialDurationPickerLocalizations
- MaterialDurationPickerLocalizationDe
- MaterialDurationPickerLocalizations
- RestorableDuration
- A RestorableValue that knows how to save and restore Duration.
Enums
- DurationFormat
- Determines how the time picker invoked using showDurationPicker formats and lays out the time controls.
- DurationPickerEntryMode
- Interactive input mode of the time picker dialog.
- DurationPickerMode
- Different modes of DurationPickerMode.
Extensions
- DurationExtension on Duration
- Frequently used operations for Duration.
Properties
Functions
-
hourDurationFormat(
{required DurationFormat of}) → HourFormat - The HourFormat used for the given DurationFormat.
-
showDurationPicker(
{required BuildContext context, Duration? initialDuration, TransitionBuilder? builder, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, DurationPickerEntryMode initialEntryMode = DurationPickerEntryMode.dial, DurationPickerMode durationPickerMode = DurationPickerMode.hms, String? cancelText, String? confirmText, String? helpText, String? errorInvalidText, String? hourLabelText, String? minuteLabelText, String? secondLabelText, RouteSettings? routeSettings, DurationEntryModeChangeCallback? onEntryModeChanged, Offset? anchorPoint, Orientation? orientation, Icon? switchToInputEntryModeIcon, Icon? switchToTimerEntryModeIcon}) → Future< Duration?> - Shows a dialog containing a Material Design time picker.
Typedefs
- DurationEntryModeChangeCallback = void Function(DurationPickerEntryMode mode)
- Signature for when the time picker entry mode is changed.