minix 0.0.2 copy "minix: ^0.0.2" to clipboard
minix: ^0.0.2 copied to clipboard

A minimal reactive state management and dependency injection library for flutter.

0.0.2 - 2025-07-22 #

Added #

  • watch() and read() methods in Observable<T> to support reactive and non-reactive value access.
  • ObservableTracker to manage and track observer–observable relationships.
  • Observer widget for rebuilding UI automatically when watched observables change.
  • ContextObserver widget for reactive rebuilds with access to BuildContext.

Improved #

  • Observers are now automatically unregistered via disposeObserver, preventing memory leaks.
  • ObservableTracker.runWithObserver() now dynamically registers dependencies inside the builder function.
  • Observer builder is wrapped in try-catch to safely handle runtime errors and fallback to ErrorWidget.
  • Listener registration now checks if already added to avoid duplicates.

Fixed #

  • Reactive updates now trigger safely even if multiple observables are watched in a single widget.
  • Improved listener lifecycle and cleanup using Set<VoidCallback> internally.

Notes #

  • This marks the first major release of the minix state management core.
  • Designed to be minimal, fast, and explicit — inspired by MobX and Riverpod but without boilerplate or context reliance.
2
likes
130
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A minimal reactive state management and dependency injection library for flutter.

Homepage
Repository (GitHub)
View/report issues

Topics

#state-management #dependency-injection

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on minix