d_zero_counter 0.1.0
d_zero_counter: ^0.1.0 copied to clipboard
A zero-allocation, zero-rebuild high-frequency counter and stopwatch widget for Flutter / Impeller.
⚡️ d_zero_counter #
A zero-allocation, zero-rebuild high-frequency counter and stopwatch widget suite for Flutter / Impeller.
📦 Distributed Widgets #
ZCounter(legacy alias:ZeroCounter): Renders rapidly updating integer counters directly to the ImpellerCanvasviaZeroNumberPainterwith 0 widget rebuilds and 0 string allocations per frame.ZStopwatch(legacy alias:ZeroStopwatch): High-precision 120fps stopwatch widget (MM:SS.cc) driven by aTickerand directRenderBoxpainting withoutsetState().
🚀 Usage #
import 'package:flutter/material.dart';
import 'package:d_zero_counter/d_zero_counter.dart';
final counter = ValueNotifier<int>(0);
// Zero-rebuild counter widget
ZCounter(
valueListenable: counter,
style: const TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
);
// Zero-rebuild 120fps stopwatch widget
const ZStopwatch(
isRunning: true,
style: TextStyle(fontSize: 32, color: Colors.cyanAccent),
);
📄 License #
MIT License © 2026 fexcy