morphtext
0.2.1, released 11 days ago by drei.gg
Text that morphs letter by letter, outline into outline, and into icons.
What it does
Provides widgets that smoothly morph text letter by letter between different styles, weights, sizes, fonts, words, or icons using OpenType outline data. At rest, it renders as native plain text.
AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want smooth typographic transitions between different weights, fonts, or words.
- You are building Hero animations where titles need to morph smoothly between screens.
- You want text labels to morph into icons seamlessly.
Skip it when
- You are using complex contextual script shapes like Arabic or Indic where letter morphing fails.
- You rely heavily on fonts loaded dynamically at runtime that cannot be bundled in pubspec.yaml.
Strengths
- No crossfade or ghosting; outlines truly morph into each other.
- Falls back to pixel-perfect plain text at the start and end of animations.
- Supports iOS system fonts (SF Pro) without bundling font assets.
Weaknesses
- Requires font files to be bundled and readable in pubspec.yaml for custom fonts.
- Does not support contextual shaping or ligatures out of the box.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Bundle the font files you want to morph between in pubspec.yaml.
AnimatedMorphText(
'New Word',
style: TextStyle(fontFamily: 'Fraunces', fontWeight: FontWeight.w600, fontSize: 52),
)Alternatives
Packages that do the same job and could replace morphtext.
- icon_animated
Animated outline icons with forward/reverse transitions and configurable appearance
67Compare - animated_text_kit
Flutter widget library providing a collection of ready‑to‑use text animation effects.
72Compare - sa3_liquid
Liquid implementation from simple animations 3.x
45Compare - floating_text
Provides a lightweight floating text animation widget for Flutter.
45Compare
Works with
Packages commonly used together with morphtext: ones it builds on, ones built on it, and its own family.