supply_chain_flutter
supply_chain_flutter offers Flutter widgets fitting into the supply chain ecosystem.
Building blocks
NodeNotifier<T>: AValueNotifierthat acts as a supply chain leaf node. It consumes a list of supplier nodes and notifies its listeners whenever a new product was produced. Feed it intoCustomPainter(repaint: ...)or aValueListenableBuilderto update the UI.NodeBuilder<T>: A widget rebuilding its subtree whenever the combined product of its supplier nodes changes.ScmTickDriver: Drives a supply chain manager from Flutter's frame pipeline. Mount it once near the app root. It callsscm.tick()once per frame (only when there is pending work), which makes nodes withPriority.frameproduce and nominates animated nodes.ScopeProvider: Provides a supply chain scope to its descendants. It can provide a given scope or select a child scope of the scope provided by a parentScopeProvider. Read it withScopeProvider.of(context).