material_duration_picker library

Classes

DefaultDurationPickerMaterialLocalizations
DurationPickerDialog
A Material Design time picker designed to appear inside a popup dialog.
DurationPickerMaterialLocalizations
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.

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, bool useRootNavigator = true, 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}) 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.