progressive_time_picker library

Classes

DisabledRange
PickedTime
TimePicker
Returns a widget which displays a circle to be used as a picker.
TimePickerClockNumberDecoration
used to decorate the TimePicker widgets clock numbers.
TimePickerDecoration
used to decorate the TimePicker widget.
TimePickerHandlerDecoration
used to decorate our init or end handler of time picker
TimePickerSectorDecoration
used to decorate our sector of the time picker
TimePickerSweepDecoration
used to decorate our sweep part or a part between our init and end point

Enums

ClockIncrementHourFormat
The 24 hours is divisible by 1, 2, 3, 4, 6, 8, 12, and 24.
ClockIncrementTimeFormat
The 60 minute is divisible by 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60.
ClockTimeFormat

Functions

coordinatesToRadians(Offset center, Offset coords) double
formatIntervalTime({required PickedTime init, required PickedTime end, ClockTimeFormat clockTimeFormat = ClockTimeFormat.twentyFourHours, ClockIncrementTimeFormat clockIncrementTimeFormat = ClockIncrementTimeFormat.fiveMin}) PickedTime
formatTime({required int time, required ClockIncrementTimeFormat incrementTimeFormat}) PickedTime
getClockTimeFormatDivision(ClockTimeFormat clockTimeFormat, ClockIncrementTimeFormat incrementTimeFormat) int
getSectionsCoordinatesInCircle(Offset center, double radius, int sections) List<Offset>
getSweepAngle(double init, double end) double
isAngleInsideRadiansSelection(double angle, double start, double sweep, ClockIncrementTimeFormat clockIncrementTimeFormat) bool
isPointAlongCircle(Offset point, Offset center, double radius) bool
isPointInsideCircle(Offset point, Offset center, double rradius) bool
percentageToRadians(double percentage) double
percentageToValue(double percentage, int intervals) int
pickedTimeToDivision({required PickedTime pickedTime, required ClockTimeFormat clockTimeFormat, required ClockIncrementTimeFormat clockIncrementTimeFormat}) int
radiansToCoordinates(Offset center, double radians, double radius) Offset
radiansToPercentage(double radians) double
validateSleepGoal({required PickedTime inTime, required PickedTime outTime, required double sleepGoal, ClockTimeFormat clockTimeFormat = ClockTimeFormat.twentyFourHours, ClockIncrementTimeFormat clockIncrementTimeFormat = ClockIncrementTimeFormat.fiveMin}) bool
valueToPercentage(int time, int intervals) double