countman 0.1.0
countman: ^0.1.0 copied to clipboard
High-performance counter, countdown & stopwatch animations for Flutter. One shared vsync ticker drives every instance — no per-widget timers, built for high concurrency.
Changelog #
0.1.0 #
Initial release.
A high-performance counter / countdown / elapsed animation library for Flutter.
One shared scheduleFrameCallback ticker drives every instance — adding the
hundredth counter costs the same as the first.
Engines #
Counter(value interpolation),Countdown(wall-clock deadline, interval- gated),Elapsed(open-ended stopwatch). Top-levelcounter()/countdown()/elapsed(), shareddefaultCounter/defaultCountdown/defaultElapsedand precise (interval: 0)defaultCountdownMs/defaultElapsedMs.
Widgets #
- Counter:
TextCounter,RingCounter,BarCounter,OdometerCounter,AnimatedCounter(+.usd/.cny/.inr),AnimatedCounterBuilder,CounterBuilder. - Countdown:
TextCountdown,RingCountdown,BarCountdown,DialCountdown,CardCountdown,CountdownBuilder. - Elapsed:
TextElapsed,ElapsedBuilder.
Features #
- Per-widget
*Styleobjects (colors, gradients,decoration+padding, ringsweepAnglegauge /startAngle/showTrack/ leading thumb dot, barvertical/showTrack);painterBuilderescape hatch on ring/bar/dial. - Imperative controllers:
CounterValueController,AnimatedCounterController,CountdownController,ElapsedController(pause / resume / reset / status). - Providers:
CounterProvider,CountdownProvider,ElapsedProvider, aggregateCountmanProvider, andCardCountdownProvider(shared glyph cache). precise: truesub-second updates;onTick(TimeParts);threshold+onThreshold; full lifecycle callbacks;animateOnce(play once per key).- Formatters
CountdownFormat.{hms, ms, msTenths, msMillis, dhms, dhm, auto}. StartScheduler(batch grid startup across frames); injectablecountdownClockfor testing / server-time alignment.
Zero third-party runtime dependencies.