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.
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.
- liquid_glass_widgets
iOS-style liquid glass widgets with fragment shader blur, refraction, and jelly physics.
94Compare - cupertino_liquid_glass
Flutter widgets that render iOS‑style liquid‑glass blur surfaces and navigation bars.
75Compare - g1455
Liquid Glass for Flutter with refraction, blur, tint, and shared capture.
76Compare - cupertino_native_better
Native iOS and macOS Liquid Glass controls and widgets in Flutter with Cupertino fallbacks.
87Compare
Works with
Packages commonly used together with liquid_glass_renderer: ones it builds on, ones built on it, and its own family.
- hooksliquid_glass_renderer depends on itDart API for the JSON-based protocol for package build and link hooks.
- loggingliquid_glass_renderer depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- vector_mathliquid_glass_renderer depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- equatableliquid_glass_renderer depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- flutter_shadersliquid_glass_renderer depends on itUtilities and shaders for working with the FragmentProgram API in Flutter
- motorliquid_glass_renderer depends on itUnified motion system combining physics-based springs and duration-based curves.
- flutter_gpu_shadersliquid_glass_renderer depends on itBuild tool that compiles Flutter GPU shader bundles via a build hook.
- stupid_simple_sheetSame familyA simple sheet widget for Flutter.