morphnext library

Morphing animations for bundled Flutter icon fonts, and the glyph outline engine behind them.

Classes

AnimatedMorphIcon
Implicitly morphs to each new bundled-font Flutter icon.
MorphCache
Controls the application-wide cache of completed icon morphs.
MorphFallbackDetails
Why a requested vector transition fell back to ordinary Flutter icons.
MorphFont
A font file's glyph outlines, for morphing glyphs outside MorphIcon, such as text, custom painters, or glyphs placed by the caller.
MorphGlyph
One glyph's outline and metrics, from MorphFont.glyph.
MorphIcon
Morphs between two bundled-font Flutter icons using controlled progress.
MorphOutline
A filled outline that MorphOutlinePlan can morph. It is either a MorphGlyph or several outlines placed as one with combine.
MorphOutlinePlan
The morph from one MorphOutline to another. Contours are paired as MorphIcon pairs an icon's contours.
MorphSprings
Ready-made spring descriptions for morph transitions.
SpringDescription
Structure that describes a spring's constants.

Functions

precacheMorph(BuildContext context, {required IconData from, required IconData to, bool bidirectional = false, TextDirection? textDirection, double? fill, double? weight, double? grade, double? opticalSize, FontWeight? fontWeight}) → Future<void>
Prepares a bundled-font icon pair in the widgets' existing bounded cache.