fix(surfaces): make list/card surfaces opaque by default, fix card radius
The prototype states an explicit system rule (t4 line 40): "opaque list surface #102532, glass only in the chrome and in the active card." PluriGlassSurface backs nearly every card/row in the app, but always rendered translucent + blurred (glassSurface, blur 18) — the listSurface token (#102532) existed since WU1 but was only ever used at reduced alpha, never opaquely. Add a `glass` flag to PluriGlassSurface, defaulting to false: an opaque listSurface fill with no BackdropFilter. Chrome (MiniReproductor) and the active/now-playing card (Escuchar's hero, when a station is playing) opt into the old translucent look via `glass: true` — every other of the ~26 call sites needs no change and now renders opaquely. Also fix the card radius: the prototype's dominant card radius is 18 (t4 lines 512, 613, 715, 133); radiusMd was 22, a systematic +4px drift across every card that defaults to it. Retune TarjetaEmisora's own radius ternary so its compact (row) variant uses the dominant row radius, 14, instead of inheriting the card radius. S3+S4, Tier 1 visual-fidelity pass (audit id 2521).
This commit is contained in:
@@ -65,8 +65,11 @@ class _TarjetaEmisoraState extends State<TarjetaEmisora> {
|
||||
label: l10n.stationSemanticLabel(stationName),
|
||||
child: PluriGlassSurface(
|
||||
padding: EdgeInsets.zero,
|
||||
// S4 (Tier 1 visual fidelity): compact (esCompacta) is a flat-list
|
||||
// ROW — prototype dominant row radius 14 (t4 lines 175, 227, 302).
|
||||
// The full grid card keeps the dominant CARD radius, 18.
|
||||
borderRadius: BorderRadius.circular(
|
||||
widget.esCompacta ? t.radiusMd : t.radiusLg,
|
||||
widget.esCompacta ? t.radiusSm : t.radiusMd,
|
||||
),
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
|
||||
Reference in New Issue
Block a user