pinger 0.0.5 copy "pinger: ^0.0.5" to clipboard
pinger: ^0.0.5 copied to clipboard

Pinger is a highly optimised and fast flutter notifier. It helps to achieve a easier state management

0.0.5 #

  • Bug Fixes - Extension file added for pingora
  • Example Updates - Example updated for pingora
  • Pingora disposed assertionssubscribe(), unsubscribe(), and ping() now assert !_disposed before executing (matching Pinger's behaviour). unsubscribe() also asserts the listener was actually subscribed.
  • PingoraSelector initState crash — moved widget.listenable(context) from initState to didChangeDependencies, fixing the "dependOnInheritedWidgetOfExactType called before initState completed" crash when listenable uses context.pingora<T>(). Also added didUpdateWidget handling for Pingora changes and proper dispose guard.

0.0.4 #

✨ New #

  • Lifecycle logging — both Pinger and Pingora now log all lifecycle events (initialized, subscribed, pinged, unsubscribed, disposed) via dart:developer's log(). View output with flutter logs or your IDE's debug console.

🔧 Fixed #

  • Duplicate ChannelerExtension — removed the broken duplicate ChannelerExtension from channel.dart that conflicted with the real one in channeler_extension.dart.
  • Barrel file — created lib/pingora.dart (was missing) so package:pinger/pingora.dart works as a single import for all Pingora classes.

📚 Docs & Examples #

  • Examples consolidated — merged from 5 separate screens into 3 focused flows:
    • Flow 1: Pinger + PingBuilder (manual + auto lifecycle side by side)
    • Flow 2: PingoraScope + PingoraSelector + context.pingora() (ViewModel pattern end to end)
    • Flow 3: Channeler (global event bus)
  • Example bug fixesPingoraExample now wraps the screen with PingoraScope and uses a separate _CounterBody widget so didChangeDependencies runs after the scope is mounted.
  • README rewritten — each flow has a single cohesive section with code snippets that match the actual API. Added API reference tables for all classes. Added "Which flow should I use?" decision table.
3
likes
160
points
108
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pinger is a highly optimised and fast flutter notifier. It helps to achieve a easier state management

Repository (GitHub)
View/report issues

Topics

#state-management #lightweight #fast #disposable #performance

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pinger