-
-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Streams for FormBuilderState #1155
Comments
This will be a nice feature. Things to consider:
|
I think the entire form would be better. Implementing each field a stream would be a-okay, but also an overkill. Streaming the change of entire form would also cover the individual fields. So, anyone interested in subscribing the event change on one field might as well subscribe to the entire form stream and get its value.
I'm not quite much familiar with the underlying concept of this project. So I have one question: Can we save an invalid form? I ask this because there is a
|
Yes, can save invalid value |
+1 for this request |
need this too |
This would be a useful feature |
It's been a couple of months since I started working on this feature but the current API is so focal on event-driven approach1 that trying to implement stream-driven approach is such a hassle and I don't have time to take it on unfortunately. I've initially tried this on #1162, which is pretty much abandoned. If the requesters are in a dire need, they can check out streaming_forms, a project that I started. It even has a web-based demo as well. It relies on stream-driven approach and raw material components. It is still in alpha phase, but can work on it in small steps if it shows further interest. Footnotes
|
Environment
Package version: 7.7.0
Description
What you'd like to happen:
For example, the package connectivity_plus has a
onConnectivityChange
stream. When you subscribe to it, you get the changes in real time.This is especially useful in state managers, specifically Bloc. Here, from Flutterly's Bloc tutorial from 8:34, you can see how streams can be utilized in Bloc.
The text was updated successfully, but these errors were encountered: