Recipe L2 — l'unico posto dove vive la matematica del chrome tonale.
Scala canonica:
soft(tinta): baseopacitySoft(0.10) · hoveropacityMuted(0.14) · pressopacityMedium(0.20), colore = tono.outline/ghost(stile shadcn): bg SEMPRE neutro (trasparente → grigioaccenthover → accent scurito press); outline ha bordo SEMPRE grigiocardBorder. Il tono vive SOLO nel testo/icona (fg), mai in bordo/bg.solid: hover/press scuriscono conColor.lerp(bg, black, 0.08/0.16).link: solo testo = tono (hover scurito), nessun bg/bordo.
colored: false = percorso neutro (tono secondary + costruttori raw): testo primaryText; soft → scala muted; outline/ghost → overlay neutro + bordo cardBorder (outline).
Con state.disabled restituisce i colori idle: l'opacità disabled
(theme.opacityDisabled) la applica il consumer sull'intero widget.
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