INNER CODE UNIT · Dart

_shouldSkipPremiumPreload

sdegenaar/liquid_glass_widgets · lib/liquid_glass_setup.dart:148

  static bool _shouldSkipPremiumPreload() {
    if (kIsWeb) return true;
    if (defaultTargetPlatform == TargetPlatform.windows) return true;
    if (defaultTargetPlatform == TargetPlatform.linux) return true;
    return false;
  }

  // ── wrap() ─────────────────────────────────────────────────────────────────

  /// Wraps [child] in the Liquid Glass infrastructure scopes and applies all
  /// behavioral configuration.
  ///
  /// **Responsibility**: widget-tree composition and runtime behavior. All
  /// configuration that affects how glass widgets behave lives here — explicit,
  /// visible, and co-located with the widget tree entry point.
  ///
  /// **Optional** — provides app-wide theming and adaptive quality.
  /// `GlassBackdropScope` is no longer needed (each glass layer manages its own

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…