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'))
Inheritance
Available extensions

Values

xs → const SizeToken

32dp control height.

sm → const SizeToken

40dp control height.

md → const SizeToken

48dp control height.

lg → const SizeToken

56dp control height.

xl → const SizeToken

64dp control height.

xxl → const SizeToken

72dp control height.

xxxl → const SizeToken

80dp control height.

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

Constants

values → const List<SizeToken>
A constant List of the values in this enum, in order of their declaration.