flow_builder library
A Flutter package which simplifies flows with a flexible, declarative API.
Classes
-
FakeFlowController<
T> - A concrete FlowController implementation that has no impact on flow navigation.
-
FlowBuilder<
T> - FlowBuilder abstracts navigation and exposes a declarative routing API based on a state.
-
FlowController<
T> - A controller which exposes APIs to update and complete the current flow.
- Visible for testing system navigation.
Extensions
- FlowX on BuildContext
- Extension on BuildContext which exposes the ability to access a FlowController.
Typedefs
-
FlowCallback<
T> = T Function(T state) -
Signature for function which given an input flow state
T
will output a new flow stateT
. -
OnGeneratePages<
T> = List< Page> Function(T state, List<Page> pages) -
Signature for function which generates a List<Page> given an input of
T
and the current List<Page>.