progressive_time_picker
library
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
-