adaptive_text 1.0.0
adaptive_text: ^1.0.0 copied to clipboard
A Flutter widget that intelligently adapts text display with line wrapping, font scaling, and truncation based on available space.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-08-02 #
Added #
- Initial release of AdaptiveText widget
- Three-tier text adaptation strategy:
- Line wrapping for multi-word text
- Font scaling with configurable maximum reduction
- Truncation with ellipsis as fallback
- Smooth animations between different display modes
- Full text scaler support for accessibility
- Intelligent constraint handling for unbounded layouts
- Performance-optimized caching system
- Debug mode for development and troubleshooting
- Comprehensive accessibility features with semantic announcements
- Extension method for easy conversion from existing Text widgets
- Extensive customization options:
- Configurable animation duration and curves
- Adjustable maximum scale reduction
- Custom overflow behavior
- Text alignment support
Features #
- ✅ Smart text fitting with multi-tier fallback
- ✅ Accessibility-first design with screen reader support
- ✅ Performance optimized with intelligent caching
- ✅ Full Flutter text scaler compatibility
- ✅ Smooth animations with customizable timing
- ✅ Debug mode for development
- ✅ Comprehensive documentation and examples