PulseRadius class abstract final

Corner radii by role — what kind of thing is being rounded.

PulsePrimitives holds the raw scale (radiusSmradiusFull); this holds the decisions made with it. Prefer these when building a surface that should look like it belongs to PULSE, and reach for the primitive only when you deliberately want a value the DS has no role for.

Container(
  decoration: BoxDecoration(
    color: Theme.of(context).colorScheme.surface,
    borderRadius: BorderRadius.circular(PulseRadius.surface),
  ),
)

Every role below is one PULSE actually paints — none was invented to round out the set. That is deliberate: a role nothing uses is a guess frozen into the public API.

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

Constants

control → const double
Things a finger operates: buttons, text fields, segmented controls. 8px.
inset → const double
Small affordances inside another surface — a splash on a trailing action, a swatch. 4px.
pill → const double
Fully rounded: chips, drag handles, pills. Effectively a stadium.
sheet → const double
Surfaces anchored to a screen edge — bottom sheets. 16px.
surface → const double
Surfaces that host content: cards, dialogs, snack bars, section cards. 12px.