flutter_unit_ruler library

Classes

Length
Represents the unit category for length measurements (e.g., inch, centimeter).
ScaleController
A controller for managing and notifying changes to a unit's value.
ScaleIntervals
Represents a range or interval of values on the ruler.
ScaleIntervalStyle
Defines the visual style for an interval on the ruler.
ScaleUnit
Represents a unit of measurement with a unique ID, name, symbol, unit group, and a list of unit intervals defining the measurement range.
TrianglePainter
a triangle painter
UnitRuler
A class representing the UnitRuler, a digital tool for measuring various units like weight and length.
UnitRulerState
The state class for UnitRuler, responsible for managing its dynamic behavior and UI.
UnitType
Abstract class to provide static access to unit categories like length and weight.
Weight
Represents the unit category for weight measurements (e.g., kilogram, pounds).

Typedefs

ValueChangedCallback = void Function(num value)
A callback function signature used for notifying when a ruler value has changed.