mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-03 00:30:54 +02:00
chore(logging): sanitize diagnostics and reduce noise
This commit is contained in:
@@ -2,11 +2,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
/// Single source of truth for the app's visual scale.
|
||||
///
|
||||
/// Before this existed, radii, cover sizes, badge metrics and motion durations
|
||||
/// were written literally at every call site (300+ `BorderRadius.circular`
|
||||
/// calls across 70 files, with five different radii for what is visually the
|
||||
/// same thumbnail). Anything reused across more than one screen belongs here so
|
||||
/// a design change is a one-line edit instead of a grep-and-replace campaign.
|
||||
/// Reusable radii, spacing, artwork metrics and motion durations belong here.
|
||||
///
|
||||
/// Read it through [AppTokensContext.tokens] rather than
|
||||
/// `Theme.of(context).extension<AppTokens>()`, so a widget rendered outside a
|
||||
@@ -118,9 +114,7 @@ class AppTokens extends ThemeExtension<AppTokens> {
|
||||
|
||||
final double headerCollapsedTitleSize;
|
||||
|
||||
/// Expanded title size for every collapsing header in the app. Tab roots used
|
||||
/// to expand to 34 while sub-pages expanded to 28; both now follow this one
|
||||
/// value, which matches the Material 3 large top app bar headline.
|
||||
/// Material 3 large top app bar headline size used by collapsing headers.
|
||||
final double headerExpandedTitleSize;
|
||||
|
||||
final Duration motionFast;
|
||||
|
||||
@@ -5,12 +5,8 @@ import 'package:spotiflac_android/widgets/cached_cover_image.dart';
|
||||
|
||||
/// Colour scheme derived from cover art, used to theme detail-screen headers.
|
||||
///
|
||||
/// The headers used to hardcode `Colors.white` text over a `Colors.black`
|
||||
/// scrim, so they looked identical in light and dark mode and ignored dynamic
|
||||
/// colour entirely — and white-on-pale-cover was hard to read. Deriving a
|
||||
/// scheme from the artwork keeps the header tinted by the album while still
|
||||
/// following the app's brightness, and guarantees the on-colours contrast with
|
||||
/// whatever surface ends up behind them.
|
||||
/// The generated scheme follows app brightness and supplies contrasting
|
||||
/// on-colours for the artwork-derived surface.
|
||||
class CoverPalette {
|
||||
const CoverPalette._();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user