subtree 0.6.1
subtree: ^0.6.1 copied to clipboard
A state manager for those who like BLoC but don't like BLoC verbosity.
0.6.1 #
Make ControlledSubtree generic over its controller type: ControlledSubtree<Ctrl extends SubtreeController>.
The controller type is inferred from the controller builder, so existing code needs no changes. Because the
type argument is now part of the widget's runtime type, switching between two ControlledSubtree widgets with
different controller types recreates the controller instead of reusing the previous one.
Documentation: API reference comments across the whole public API, and a rewritten README covering how a screen
is structured, the patterns production apps built on Subtree actually use (flow objects, routing callbacks, page
arguments with a result, screens split into BaseController sections, mirroring repositories with sync),
testing, and the common gotchas.
0.6.0 #
Split SubtreeController into SubtreeController and BaseController
0.5.2 #
Ease type restriction on EventListener generic parameter T
0.5.1 #
Now sync function returns FutureOr
Example: #
await sync(() async {
final someData = await api.loadData();
...
}, []);
0.5.0 #
BREAKING CHANGE:
change subtreeGet to get and subtreeModel to subtree
0.4.0 #
Make RxList truly immutable
0.3.0 #
Combine all get put function into simple subtreeGet and put functions.
0.2.0 #
Change subtreeGet to more universal subtreeGet, now it should be used instead subtreeState and subtreeAction Change putTransformer to more universal put now it should be used instead putState and putAction
0.1.0 #
Initial Version of the library.