flutter_caffeine 1.0.0 copy "flutter_caffeine: ^1.0.0" to clipboard
flutter_caffeine: ^1.0.0 copied to clipboard

Flutter bindings for caffeine. Attach reactive scopes to the widget tree, read state with context.state(), and subscribe to automatic rebuilds — no StreamBuilders, no dispose boilerplate.

0.0.1 #

Initial release.

  • Caffeine widget — attaches a caffeine Scope to a point in the element tree and disposes it when the element is removed
  • context.state(node) — reads a Stateful or Store value from the nearest Caffeine ancestor; subscribes to automatic rebuilds when listen: true (the default)
  • context.fire(event) — dispatches an event through the nearest Caffeine ancestor's scope
  • Caffeine.of(context) — retrieves the nearest Scope for forking child scopes
  • Subscription cleanup via Finalizer — no dispose overrides or wrapper widgets required
0
likes
125
points
100
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter bindings for caffeine. Attach reactive scopes to the widget tree, read state with context.state(), and subscribe to automatic rebuilds — no StreamBuilders, no dispose boilerplate.

Repository (GitHub)
View/report issues

Topics

#state-management #reactive #store #flutter

License

MIT (license)

Dependencies

caffeine, flutter

More

Packages that depend on flutter_caffeine