Skip to main content

d_zero_counter 0.1.0 copy "d_zero_counter: ^0.1.0" to clipboard
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.

License: MIT Impeller: Vulkan & Metal


📦 Distributed Widgets #

  • ZCounter (legacy alias: ZeroCounter): Renders rapidly updating integer counters directly to the Impeller Canvas via ZeroNumberPainter with 0 widget rebuilds and 0 string allocations per frame.
  • ZStopwatch (legacy alias: ZeroStopwatch): High-precision 120fps stopwatch widget (MM:SS.cc) driven by a Ticker and direct RenderBox painting without setState().

🚀 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

0
likes
0
points
1.2k
downloads

Publisher

unverified uploader

Weekly Downloads

A zero-allocation, zero-rebuild high-frequency counter and stopwatch widget for Flutter / Impeller.

Homepage
Repository (GitHub)
View/report issues

Topics

#counter #stopwatch #zero-allocation #impeller #performance

License

unknown (license)

Dependencies

d_zero_core, flutter

More

Packages that depend on d_zero_counter