Skip to content
pubscout

liquid_glass_renderer

1.0.0-dev.2, released 3 weeks ago by whynotmake.it

iOS 27-style liquid glass renderer for Flutter with refraction, frost, and tint.

WASM-readyRock solid
$ flutter pub add liquid_glass_renderer
Source repository

What it does

Renders Apple iOS 27-style liquid glass effects in Flutter, featuring refraction through a rounded bevel, frost, tint, directional glint, and shapes that melt into each other. It uses Flutter's own rendering via Flutter GPU and shaders, with an automatic fallback to FakeGlass.

AI-written summary of version 1.0.0-dev.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to replicate iOS 27-style liquid glass, toolbars, or tab bars in your Flutter app.
  • You are targeting platforms supporting Impeller and Flutter GPU for full glass refraction effects.

Skip it when

  • You need a simple non-refractive translucent container without GPU requirements.
  • You are building for environments where Flutter GPU or Impeller is unavailable and you require full refraction.

Strengths

  • Authentic replication of iOS 27 glass aesthetics including bevel refraction, glint, and border styling.
  • Supports shape blending ('melting' together like water drops).
  • Automatic fallback to FakeGlass where full glass is unavailable.

Weaknesses

  • Full glass requires Impeller and the Flutter GPU API, which is still in preview.
  • A layer renders at most 16 shapes and independent layers sample the backdrop separately, impacting performance.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
9

Requires Flutter 3.47+. Full glass needs Impeller and Flutter GPU enabled via command line (--enable-flutter-gpu) or native configuration (FLTEnableFlutterGPU in Info.plist / AndroidManifest.xml metadata).

Stack(
  children: [
    const Positioned.fill(child: MyContent()),
    Center(
      child: LiquidGlassLayer(
        settings: LiquidGlassSettings.ios27Regular(brightness: Brightness.light),
        child: const LiquidGlass(
          shape: LiquidRoundedSuperellipse(borderRadius: 28),
          child: SizedBox(width: 220, height: 56),
        ),
      ),
    ),
  ],
)

Alternatives

Packages that do the same job and could replace liquid_glass_renderer.

Works with

Packages commonly used together with liquid_glass_renderer: ones it builds on, ones built on it, and its own family.