A Flutter widget that automatically inserts hyphens in text to improve line breaking and readability, especially in narrow layouts. Designed as a direct replacement for the standard Text widget, it seamlessly integrates into existing codebases without requiring major changes. The package supports multiple platforms and handles hyphenation rules intelligently based on language and context.
Use cases
- Improving text layout in narrow containers
- Enhancing readability in justified text
- Replacing default Text widgets with hyphenated alternatives
- Supporting multilingual text with proper hyphenation
- Optimizing responsive UIs on small screens
Key features
- Automatic hyphenation based on language
- Drop-in replacement for Text widget
- Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
- Configurable hyphenation behavior
- Minimal setup required
Suitable for
- Apps with dense text content
- Responsive designs with variable screen widths
- Multilingual applications
- Publishing or reading apps
- UIs requiring clean typography
Considerations
- May slightly increase rendering overhead
- Hyphenation accuracy depends on language data
- Not suitable for very short text strings
- Limited customization of hyphenation points
- Requires careful testing on all target platforms

