blackbox_flutter 0.3.0
blackbox_flutter: ^0.3.0 copied to clipboard
Flutter bindings for Blackbox (BoxObserver + BoxProvider + persistence adapters).
0.3.0 #
- Requires
blackbox ^0.11.0, whose behavior changes reach the UI too: a box no longer publishes an output equal to its current one (an observer does not rebuild for it); a node that throws fails alone, as aGraphNodeError; a graph lets go of sources no wire reads. The map of an app's graphs ispackage:blackbox/map.dart.
0.2.2 #
- Requires
blackbox ^0.10.12. BoxReadCheck(debug builds only): a box read during a widget build outside anyBoxObserverprints a warning — once per read site, with the frames that led to it. Such a read is a snapshot: the widget will not rebuild when the box changes. Catches both shapes: a read in a plain widget'sbuild, and a read in a callback that runs after the observer's builder (LayoutBuilder,itemBuilder). Reads inonPressed, actions and the graph stay quiet; a deliberate snapshot during build goes inBoxHooks.untracked. Installed byBoxObserverandBoxProvider;BoxReadCheck.enabled = falsesilences it.
0.2.1 #
- Debug aid: a
BoxObserverwhose build read no boxes prints a warning (once per observer) — it will never rebuild, and the usual cause is reads moved into a nested builder, outside tracking.
0.2.0 #
- Requires
blackbox ^0.10.0— the subtraction release:computesignatures withoutprevious, deprecated legacy removed.
0.1.2 #
BoxProvider.multiasserts on two boxes of the same runtime type —context.box<T>()cannot tell twins apart, so the collision is now loud instead of silently resolving to the last one. Pairs withgraph.boxesfrom blackbox 0.9.2.
0.1.1 #
BoxProvider/BoxOverride/context.boxacceptProvidableBox— MultiBox composites can now be provided and resolved like any box.
0.1.0 #
- Requires
blackbox ^0.9.0— the model release: state cells (state(..., persist: ...)),CachedBox/CachedValueBoxwithfetch,MultiBox.child(initial)/connect,graph.settled()/toMermaid(). See the blackbox changelog and README migration table.
0.0.9 #
- Fixed:
SharedPrefsStorecan now store the persistence envelope ({'v': ..., 'ts': ...}): maps are transparently encoded as JSON strings inSharedPreferencesand decoded back onpreload(). Previously anyPersistedbox crashed withUnsupportedErroron its first save. Legacy raw primitive values remain readable. - Update dependency: blackbox ^0.8.0, blackbox_support ^0.0.7
0.0.8 #
- Update dependency: blackbox ^0.7.0, blackbox_support ^0.0.6
0.0.7 #
- Refresh README examples and persistence setup docs for
SharedPrefsStore.preload(). - Update dependency: blackbox ^0.4.1
0.0.6 #
- Add
BoxOverride<T>andBoxProvider.overrides(...)for type-safe dependency injection and widget testing.
0.0.5 #
- Breaking: removed
ObservableFlowBoxand legacyBoxObserver.trackBox(...). BoxObservernow uses shared tracking runtime fromblackbox_support; tracked reads come from core hooks.- Update dependency: blackbox ^0.2.0, blackbox_support ^0.0.2
0.0.4 #
- Added
ObservableOutputSource.reportRead()as the generated tracking hook for@observableboxes. - Deprecated
BoxObserver.trackBox(...); keep it only for legacy generated code. - Documented that observable tracking should be used through
blackbox_codegen, not via manual calls.
0.0.3 #
- Updated dependency on
blackboxto^0.1.0 - Updated docs/examples to the
Graphnaming
0.0.2 #
- Initial release