d_zero_core 0.1.0
d_zero_core: ^0.1.0 copied to clipboard
Core foundation library for zero-allocation Flutter widgets and high-performance Impeller rendering.
⚡️ d_zero_core #
Core foundation library for zero-allocation Flutter widgets and high-performance Impeller rendering.
📦 Key Components #
ZWidget/ZeroRenderBox: BaseLeafRenderObjectWidgetandRenderBoxprimitives that bypassWidget.build()andsetState(), triggering onlymarkNeedsPaint()with an automatic repaint boundary.ZeroNumberPainter: Pre-rasterized ASCII/UTF-16 glyph table renderer that draws integers, decimals, and timecodes (00:00.00) directly toCanvaswithoutint.toString()or heap string allocations.FloatRingBuffer: Fixed-capacityFloat32List-backed circular buffer for zero-allocation time-series, audio waveform, and telemetry streaming.ZeroPool<T>: Pre-warmed object pool eliminating per-frame heap allocations in 60fps/120fps render loops.ZeroFrameScheduler&ZeroNotifier: Lightweight V-Sync ticker and value notification primitives designed for direct RenderBox binding.
🚀 Usage #
import 'package:d_zero_core/d_zero_core.dart';
// Fixed-capacity ring buffer with zero heap allocation on write
final buffer = FloatRingBuffer(1024);
buffer.push(0.42);
📄 License #
MIT License © 2026 fexcy