flutter-form-builder-ecosystem / flutter-form-builder-ecosystem/flutter_form_builder
Provide Streams for FormBuilderState
- Dominant language
- Dart
- Stars
- 1.6k
- Forks
- 561
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
**Package version:** 7.7.0
## Description
**What you'd like to happen:**
For example, the package [connectivity_plus](https://pub.dev/packages/connectivity_plus) has a `onConnectivityChange` stream. When you subscribe to it, you get the changes in real time.
```dart
_formKey.currentState!.onChange.listen((Map> values) {
// do what you want to do with fields
});
```
This is especially useful in state managers, specifically Bloc. [Here](https://www.youtube.com/watch?v=ricBLKHeubM), from Flutterly's Bloc tutorial from 8:34, you can see how streams can be utilized in Bloc.
Contributor guide
Assessment
This issue has not been assessed yet.