Open alestiago opened 1 year ago
Sorry for offtop, but what is the right way to do nested FlowBuilder
s?
In the example from @alestiago FlowBuilder
s are actually nested, but in the examples from the repository Navigator.of(context).push(...)
is used to begin some flow. The last one looks like a mix of declarative and imperative approaches, which does not seem quite right.
Is there any cons to the approach that @alestiago uses?
Related:
Is your feature request related to a problem? Please describe. Since using Navigator.pop() goes back in the flow, it would be nice if this remains consistent even when the flow only has one page. I would expect popping the last page to complete the flow.
Having the above functionality makes nesting FlowBuilders very convenient.
Example
```dart import 'package:flow_builder/flow_builder.dart'; import 'package:flutter/material.dart'; void main() { runApp(const MaterialApp(home: _HomeFlow())); } enum _HomeFlowState { home, settings, } class _HomeFlow extends StatelessWidget { const _HomeFlow({Key? key}) : super(key: key); static ListDescribe the solution you'd like I would like to have some logic that makes the flow complete whenever the last page of the flow is popped.
Describe alternatives you've considered N/A
Additional context N/A