ColourPickerGestureUtils class
Shared geometry and coordinate utilities for colour picker gesture handling.
Provides two core transformations used by all picker gesture detectors:
- Global → normalised — Converts a screen-space tap/drag position into a (0-1, 0-1) coordinate within the picker widget.
- Normalised → polar — Converts the normalised position into hue (degrees) and distance (0-1 from centre), used by wheel and ring pickers.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
globalToLocalNormalized(
Offset globalPosition, BuildContext context, double width, double height) → Offset? -
Converts a global position to local normalized coordinates
0-1 -
toPolarCoordinates(
Offset normalizedPosition, double width, double height) → ({double distance, double hue}) - Converts a normalized position to polar coordinates for wheel/ring pickers