liquid_glass_vivid 0.1.0-dev.1
liquid_glass_vivid: ^0.1.0-dev.1 copied to clipboard
Floating liquid glass navigation for Flutter with draggable lenses, bottom and side layouts, background refraction, and renderer fallbacks.
Liquid Glass Vivid #
A Flutter liquid glass navigation bar with bottom and side layouts, a draggable lens, and background refraction. Supports light/dark themes, RTL, and reduced motion. Requires Flutter 3.41+ and Dart 3.11+; depends only on the Flutter SDK.
[Real Android device: lens dragging and focus-page scrolling behind the glass bar]
Full-resolution static screenshot · Pressed lens · Background scrolling
Get started #
Add the preview release:
dependencies:
liquid_glass_vivid: ^0.1.0-dev.1
Import package:liquid_glass_vivid/liquid_glass_vivid.dart and place this in a
bounded area such as Scaffold.body. Your widget owns selected and pages:
LiquidGlassLayout(
body: pages[selected],
navigation: LiquidGlassNavigation(
destinations: const [
LiquidGlassDestination(label: 'Home', icon: Icons.home_rounded),
LiquidGlassDestination(label: 'Explore', icon: Icons.explore_rounded),
LiquidGlassDestination(label: 'Settings', icon: Icons.settings_rounded),
],
selectedIndex: selected,
onSelected: (index) => setState(() => selected = index),
),
)
Allow scrollable content to extend behind the bar and add padding at its end. Dragging previews the selection; releasing commits it. A tap moves the lens to the destination before committing.
Options #
| Option | Purpose |
|---|---|
axis: Axis.vertical |
Side rail; set on both layout and navigation |
selectionColor |
Selected color; defaults to ColorScheme.primary |
unselectedColor, labelStyle, showLabels |
Icons and labels |
tint: 0…1 |
Clear to frosted background; lens stays clear |
enableFeedback |
Button and selection haptics |
quality: LiquidGlassCaptureQuality.balanced |
Optional lower-cost background sampling on the layout |
Validation and performance #
- Official Flutter 3.41.0 and stable CI: analysis, 34 package tests, one example test, and Web release build passed on 2026-11-15.
- Default quality preserves device pixel ratio. Balanced quality caps background sampling at DPR 2 with a 33 ms minimum update interval.
- Device Profile frame-time benchmarks are pending; 60/120 fps is not certified.
See implementation and limitations, validation coverage, and the runnable example.
Licensed under MIT.