Animated Stats Widget
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Visually engaging widget that animates numeric impact statistics using Flutter's AnimationController and Tween framework, creating a count-up reveal effect for key metrics such as total hours, number of contacts helped, and activities completed. Designed for minimal performance overhead on low-end devices.
animated-stats-widget
Responsibilities
- Animate numeric values from zero to final metric using count-up effect
- Support configurable animation duration and easing curves
- Display stat label, icon, and formatted value with locale-aware number formatting
- Handle zero-value state gracefully with neutral placeholder messaging
Interfaces
build(context, statValue, statLabel, icon)
startAnimation()
resetAnimation()
setDuration(milliseconds)
setEasingCurve(curve)