components/pickers library
Classes
- UiDatePicker
- Month-grid calendar with forward/back navigation and direct month/year selection.
- UiDateRange
- Inclusive date range.
- UiDateRangePicker
- Two-step date range picker.
- UiDateTimePicker
- Combined date + time picker. Emits a single DateTime on change.
- UiDateTimeRange
- Inclusive date-time range.
- UiDateTimeRangePicker
- Composite picker for a date range and a time range. Emits a UiDateTimeRange whose start uses the range's first date + start time, and whose end uses the last date + end time.
- UiTimeGridPicker
- Compact column-based time picker inspired by popover time controls.
- UiTimePicker
- Simple hour/minute wheel picker (24-hour clock).
- UiTimePickerField
- Read-only form trigger that opens UiTimeGridPicker in an anchored overlay.
- UiTimeRange
- Inclusive time range.
- UiTimeRangePicker
- Pair of UiTimeGridPickers for a start/end time range.
- UiTimeValue
- 24-hour clock value (hour 0..23, minute 0..59).
Enums
- UiTimePickerClockFormat
- Time format used by UiTimeGridPicker and UiTimePickerField.
Constants
-
datePickerDayGridKey
→ const ValueKey<
String> -
Test-only keys for the calendar sub-grids.
@visibleForTestingis intentionally omitted so call sites in the test package don't need to import meta — the keys are harmless if read in production. -
datePickerHeaderTriggerKey
→ const ValueKey<
String> -
datePickerMonthGridKey
→ const ValueKey<
String> -
datePickerYearGridKey
→ const ValueKey<
String>
Functions
-
selectedTime(
DateTime d) → UiTimeValue -
Imperative helper: shows a time picker inside a modal sheet and
resolves with the chosen UiTimeValue, or
nullon cancel.
Typedefs
- UiDatePredicate = bool Function(DateTime date)
-
Predicate the picker consults before accepting a date — return
truefor dates that should be non-selectable (e.g. weekends).