animated_word_counter
An animated word counter widget that supports multiple languages with customizable styling, built on animated_flip_counter.
1.1.0
48 downloads/mo
#4695 most downloaded on pub.dev
louislamlam/animated_word_counter
What this package is like to depend on
Last release 1 years ago
29 Jun 2025
Too new to tell
only 1 release windows
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
5 releases · first in 2025
0 releases in the last 12 months
see the full history below
Release timeline
5 releases · Jun 2025 to Jun 2025
2026
Releases
latest 5-
1.1.029 Jun 2025Release notes
Open source →Added
- Custom Text Styles: Added
prefixTextStyleandsuffixTextStyleparameters toAnimatedWordCounterandSimpleAnimatedWordCounter - Independent Styling: Prefix and suffix text can now have completely different text styles (color, size, weight, etc.) from the main counter
- Baseline Alignment: Added proper baseline alignment for text with different font sizes using
CrossAxisAlignment.baseline - Smart Fallback: When prefix/suffix text styles are null, the main
textStyleis used automatically - Example Showcase: Added live demo in example app showing various text styling combinations
Improved
- Enhanced text alignment for mixed font sizes with alphabetic baseline alignment
- Better visual consistency when combining different text styles
- More flexible styling options for creating custom counter designs
Technical
- Added comprehensive test coverage for text styling scenarios (33/33 tests passing)
- Maintained full backward compatibility - existing code continues to work unchanged
- Zero analyzer warnings with proper documentation for new parameters
- Custom Text Styles: Added
-
1.0.429 Jun 2025Release notes
Open source →Fixed
- Layout Constraints: Fixed "RenderFlex overflowed" errors when
AnimatedWordCounteris used in aRowwithSpacer()widgets - Widget Constraints: Resolved unbounded width constraint issues by wrapping
ImprovedAnimatedFlipCounterinFlexiblewidgets - Layout Compatibility: Improved compatibility with
Expanded,Flexible, and other layout widgets
Improved
- Better handling of constrained layouts in complex widget trees
- Enhanced widget sizing behavior in responsive layouts
- Added comprehensive test coverage for layout constraint scenarios
Technical
- Replaced problematic
IntrinsicWidthapproach withFlexiblewrapper pattern - Added
mainAxisSize: MainAxisSize.minto internal Row widgets for better space management - Fixed const constructor warnings in test files
- All tests passing (29/29) with comprehensive layout scenario coverage
- Layout Constraints: Fixed "RenderFlex overflowed" errors when
-
1.0.329 Jun 2025Release notes
Open source →Fixed
- Critical Runtime Fix: Fixed
LateInitializationErrorinAnimatedWordCounterwidget that caused app crashes on initialization - Text Overflow: Fixed
suffixOverflowandprefixOverflowproperties not working correctly by adding proper text constraints - Language Configurations: Added missing description fields to all language configurations for better API completeness
- Code Quality: Fixed all Flutter analyzer warnings and improved const constructor usage
Improved
- Enhanced null safety handling in
AnimatedWordCounterwith proper state management - Better error handling with graceful fallbacks during widget initialization
- Improved text overflow handling with
maxLines: 1andsoftWrap: falsefor reliable overflow behavior - Performance optimizations through const constructors and reduced widget rebuilds
Technical
- Updated deprecated API usage (
withOpacity()→withValues(alpha:),color.opacity→color.a) - Removed unnecessary imports and cleaned up codebase
- All tests passing (26/26) with no analyzer warnings
- Better documentation and code organization
- Critical Runtime Fix: Fixed
-
1.0.128 Jun 2025Release notes
Open source →Changed
- Updated homepage URL to point to the official GitHub repository
- Minor documentation improvements
-
1.0.028 Jun 2025Release notes
Open source →Added
- Initial release of animated_word_counter
- Multi-language word counting support for 9 languages:
- English (space-separated)
- Chinese (character-based)
- Japanese (mixed script)
- Korean (Hangul syllables)
- Thai (character-based)
- Arabic (space-separated Arabic words)
- Hebrew (space-separated Hebrew words)
- Hindi (Devanagari script)
- Auto-detection mode
- Three main widget types:
AnimatedWordCounter- Full-featured counter with statisticsSimpleAnimatedWordCounter- Basic counter displayRealTimeAnimatedWordCounter- Real-time updating counter
- Comprehensive statistics including:
- Word count
- Character count (with and without spaces)
- Line count
- Paragraph count
- Language detection
- Customizable styling and animations
- Built on animated_flip_counter for smooth animations
- Debouncing support for real-time updates
- Complete example app demonstrating all features
- Comprehensive documentation and API reference
Features
- Language-aware word counting algorithms
- Unicode character range detection
- Automatic language detection
- Customizable animation duration and curves
- Prefix and suffix text support
- Statistics display option
- Callback support for count changes
- Material Design integration