INNER CODE UNIT · Dart

LiquidGlassWidgets

sdegenaar/liquid_glass_widgets · lib/liquid_glass_setup.dart:38

class LiquidGlassWidgets {
  LiquidGlassWidgets._();

  // ── Global accessors ───────────────────────────────────────────────────────

  /// Whether glass widgets automatically respect system accessibility settings
  /// (Reduce Motion, Reduce Transparency / High Contrast).
  ///
  /// Set via [wrap]. Defaults to `true`. Read by glass widgets at build time
  /// via [GlassAccessibilityScope] or a direct [MediaQuery] fallback.
  ///
  /// The setter is provided as an escape hatch for tests and advanced runtime
  /// overrides. In production code, prefer setting this through [wrap].
  static bool get respectSystemAccessibility =>
      glass_config.respectSystemAccessibility;
  static set respectSystemAccessibility(bool value) =>
      glass_config.respectSystemAccessibility = value;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…