Skip to content
pubscout

morphnext

0.7.1, released 12 days ago by kicknext.dev

Interruptible spring-driven vector icon morphing for Flutter without per-pair animation assets.

WASM-ready
$ flutter pub add morphnext
Source repository

What it does

Transforms bundled Flutter IconData glyphs into continuous vector morphs using a spring-driven physics model. It requires no pre-generated animation assets and supports both implicit and controlled animations. It also exposes a public glyph outline API for TrueType and CFF fonts.

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

Use it when

  • You want to morph between different Material or custom vector icons smoothly.
  • You need interruptible, physics-based icon transitions without custom animation assets per pair.

Skip it when

  • You need to morph arbitrary Flutter Path objects or complex SVG artwork.
  • You require multi-color icon animations (the renderer is monochrome).

Strengths

  • No per-pair animation assets required
  • Interruptible spring-driven transitions
  • Automatic fallback to standard icons if fonts are unavailable

Weaknesses

  • Renderer is monochrome
  • Cannot morph arbitrary Path objects or SVGs
  • Arbitrary icon pairs can produce unexpected intermediate shapes

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
IconButton(
  onPressed: () => setState(() => open = !open),
  icon: AnimatedMorphIcon(
    icon: open ? Icons.close : Icons.menu,
    semanticLabel: open ? 'Close menu' : 'Open menu',
  ),
)

Alternatives

Packages that do the same job and could replace morphnext.

Works with

Packages commonly used together with morphnext: ones it builds on, ones built on it, and its own family.