minix 0.0.2
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()andread()methods inObservable<T>to support reactive and non-reactive value access.ObservableTrackerto manage and track observer–observable relationships.Observerwidget for rebuilding UI automatically when watched observables change.ContextObserverwidget for reactive rebuilds with access toBuildContext.
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
minixstate management core. - Designed to be minimal, fast, and explicit — inspired by MobX and Riverpod but without boilerplate or context reliance.