TouchTargets class
Physical floor on scale imposed by fingertips rather than eyes.
Legibility is governed by visual angle and thus viewing distance; tap targets are governed by fingertip size (~7-9mm) and are distance-irrelevant. On touch displays the final scale is max(visualScale, touchScale) where touchScale guarantees that minLogicalPx logical pixels span at least minPhysicalMm millimeters.
Constructors
- TouchTargets({double minPhysicalMm = 8.0, double minLogicalPx = 48.0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- minLogicalPx → double
-
The logical-pixel convention for a minimum touch target in your UI
toolkit. Material uses 48.
final
- minPhysicalMm → double
-
Minimum physical size of a touch target. ~7-9mm fits adult fingertips;
8mm is a reasonable default. (Material's 48dp at 160dpi is 7.62mm.)
final
- 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