SizeToken enum
Control size ladder (xs–xxxl) with derived metrics.
height/formHeight are the generic control heights, iconSize and
horizontalPadding the per-size icon and padding defaults; responsive
control heights come from context.controlHeight instead.
Button(size: ButtonSize.sm, onPressed: save, child: const Text('Save'))
Values
Properties
- formHeight → double
-
Control height used by form fields; matches height except at xs.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Generic control height in logical pixels.
no setter
- horizontalPadding → double
-
Default horizontal padding in logical pixels.
no setter
- iconSize → double
-
Default icon size in logical pixels.
no setter
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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