goo library

Classes

GooPane
A pill of the GooSurface above, swelling with the presses around it.
GooSurface
Draws the GooPanes below, pills in rows, as one surface that flows together where two neighbors in a row come close, as iOS 27 draws controls whose glass shares a container. TonalButtonTheme and TonalButtonGroup below put their buttons on panes.

Functions

gooOutline(List<Rect> pills, List<double> blends) → Path
The outline of pills, as gooGeometry in shaders/liquid_glass.frag blends their distances.
gooPairDepth(Rect a, double radius, Rect b, double blend) → double
How far inside a, rounded by radius, all of b lies past where blend still swells a's outline toward it; negative while it does.
gooPairOutline(Rect a, double radius, Rect b, double blend, {bool coarse = false}) → Path
a, rounded by radius, and the pill b flowing together either way they lie, as gooGeometry blends a first pill given that radius.