Skip to content
pubscout

oc_liquid_glass

0.3.0, released 5 months ago by eingrad.com

Create realistic liquid glass droplet effects with GPU-accelerated shaders in Flutter.

WASM-ready
$ flutter pub add oc_liquid_glass
Source repository

What it does

A Flutter package that provides GPU-accelerated fragment shader widgets to render liquid glass droplet effects with refraction, blur, lighting, and color tinting. It features individual custom colors for droplets inside a group and supports scrollable widgets and modal routes.

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

Use it when

  • You want to add realistic liquid glass droplet effects to your UI.
  • Your target platforms support the Impeller engine.
  • You need customizable refraction, blur, and lighting highlights on custom shapes.

Skip it when

  • Your target platforms do not support the Impeller engine.
  • You need to group more than 4 liquid glass shapes within a single group.

Strengths

  • Pure Flutter implementation with zero external dependencies.
  • GPU-accelerated fragment shaders for smooth performance.
  • Highly customizable visual parameters including refraction, blur, and specular highlights.

Weaknesses

  • Works only on platforms that support the Impeller engine.
  • Grouped shapes are limited to 4 shapes within one group.
  • Performance degrades with a high quantity of droplet effects.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Works only on platforms that support the Impeller engine. Ensure your app targets compatible environments.

OCLiquidGlassGroup(
  settings: const OCLiquidGlassSettings(),
  child: Stack(
    children: [
      Positioned(
        top: 100,
        left: 50,
        child: OCLiquidGlass(
          width: 120,
          height: 80,
          borderRadius: 40,
          child: Container(),
        ),
      ),
    ],
  ),
)

Alternatives

Packages that do the same job and could replace oc_liquid_glass.

  • glass

    Turn any widget into frosted glass or Apple-style liquid glass with a single asGlass() call.

  • simple_tooltip

    A Flutter widget for customizable balloon‑style tooltips.

  • blurbox

    A Flutter package that applies customizable blur effects to its child widgets.

  • progressive_blur

    An iOS-like progressive blur implementation for Flutter using shaders.