time_ring_picker 0.0.2
time_ring_picker: ^0.0.2 copied to clipboard
A highly customizable circular clock-style time range picker for selecting start/end times (e.g. sleep schedules) with overnight range support.
0.0.2 #
Fixed
- Dial numbers not matching the selected time.
- Gradient colors showing an ugly seam on large selections.
- README screenshot not showing up on pub.flutter-io.cn.
Added
- Clearer AM/PM: a tint per half of the day, plus a small AM/PM label on each number.
visibleHalf: show a simple 12-hour AM or PM clock instead of the full 24-hour ring.backgroundGradientColors: make the whole ring one gradient, not just the selected part.- New "Day & Night style" example.
0.0.1 #
Initial release.
TimeRingPickerwidget — a circular clock dial with two draggable handles for picking a start and end time.- Overnight ranges just work, e.g.
9:00 PM→6:00 AMshows a9hduration, no manual date math needed. - 12-hour or 24-hour dial, with an AM/PM tag on each handle when it's ambiguous.
- Snap dragging to a minute interval, and set a minimum gap between the two handles.
- Fully styleable: colors, gradient arc, handle size/icons, text styles, tick marks, number placement, drop shadows, and a glowing arc effect.
TimeRingControllerfor reading or setting the selection from your own code, not just by dragging.onDragStart,onTimeChanged, andonDragEndcallbacks.- Works with screen readers and switch control out of the box.
- No dependencies beyond the Flutter SDK — runs on mobile, web, and desktop.
