mesh library

Fast and highly customizable animated mesh gradients for flutter apps

Classes

AnimatedOMeshGradient
An implicitly animated widget that animates the mesh of an OMeshGradient.
BezierOVertex
A vertex with bezier control points.
DebugMode
A class to describe visual cues to assist the visualization of a mesh gradient.
OMeshGradient
A Widget that renders a multi-color gradient over a tessellated Two-Dimensional mesh of vertices.
OMeshRect
A Two Dimensional free-form rectangular mesh gradient defintion.
OMeshRectPaint
A class that draws a OMeshRect into a Canvas.
OMeshRectTween
A Tween that interpolates between two OMeshRect.
OMeshShaderProvider
A class responsible for loading and caching the fragment shader responsible for interpolation the colors of the mesh.
OVertex
A vertex with x and y components.

Enums

OMeshColorSpace
A color space defines how colors are interpolated.

Extensions

BezierizeOVertex on OVertex
Extension on OVertex to create a new OVertex with bezier control points.
DoubleDoubleToOVertex on (double, double)
Extension on double to convert it to an OVertex.
NumNumToOVertex on (num, num)
Extension on num to convert it to an OVertex.
OffsetToOVertex on Offset
Extension on ui.Offset to convert it to an OVertex.

Constants

kMaxOMeshRectDimension → const int
The maximum amount of vertices allowed along width or height in a OMeshRect.

Properties

enableOMeshImpellerCompatibility bool
Global flag that defines if O'Mesh will try to be compatible with the Impeller rendering engine.
getter/setter pair
enableOMeshImpellerCompatibilityOnAndroid bool
When enableOMeshImpellerCompatibility is true, this flag will enable Impeller compatibility on Android.
getter/setter pair
enableOMeshImpellerCompatibilityOnMacOS bool
When enableOMeshImpellerCompatibility is true, this flag will enable Impeller compatibility on macOS.
getter/setter pair