AnimatedTextLerp is a Flutter package that provides simple widgets to smoothly animate between numeric or string values. It enables fluid transitions for dynamic text, such as increasing or decreasing numbers, currency updates, or changing text content with visual continuity. Ideal for dashboards, counters, and real-time data displays, it leverages interpolation (lerp) for smooth visual effects without complex animations. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.
Use cases
- Real-time number counters
- Currency value updates
- Dynamic text transitions
- Dashboard metrics
- Loading progress indicators
- Animated statistics
Key features
- Smooth lerp-based animation
- Supports both numbers and strings
- Minimal setup required
- Cross-platform compatibility
- Customizable duration and curve
- Built-in easing functions
Suitable for
- Simple animated counters
- Data visualization widgets
- User interface enhancements
- Educational apps
- Financial dashboards
Considerations
- Not ideal for complex animations
- Limited customization beyond basic properties
- Best suited for small text changes
- May impact performance with high-frequency updates
- Requires careful handling of string formatting
