Skip to content
pubscout

gooey

0.2.0, released 7 months ago by codeness.ly

A layout-agnostic gooey and metaball effect widget for Flutter using fragment shaders.

WASM-ready
$ flutter pub add gooey
Source repository

What it does

Creates a liquid-like metaball visual effect by merging multiple widgets together using hardware-accelerated fragment shaders. It works with any widget arrangement as long as elements are descendants of a GooeyZone.

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

Use it when

  • You want nearby UI elements to visually merge together like liquid.
  • You need hardware-accelerated metaball effects in Flutter layouts.

Skip it when

  • You have more than 10 GooeyBlob children inside a single GooeyZone.
  • Target platforms do not support GLSL fragment shaders.

Strengths

  • Layout-agnostic, works with Row, Column, Stack, and Wrap widgets.
  • Hardware-accelerated rendering using GLSL fragment shaders.
  • Supports gradient fills and cutout blobs.

Weaknesses

  • Limited to a maximum of 10 GooeyBlob children per GooeyZone.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
GooeyZone(
  color: Colors.indigo,
  gooiness: 30,
  child: Row(
    mainAxisSize: MainAxisSize.min,
    children: [
      GooeyBlob(shape: const BlobShape.circle(), child: Icon(Icons.add)),
      GooeyBlob(shape: const BlobShape.circle(), child: Icon(Icons.edit)),
    ],
  ),
)

Alternatives

Packages that do the same job and could replace gooey.