Skip to content
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

Docs: more complex examples/use cases in combination with bloc #110

Open
WieFel opened this issue Sep 29, 2023 · 1 comment
Open

Docs: more complex examples/use cases in combination with bloc #110

WieFel opened this issue Sep 29, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation p3 Issues that we currently consider unimportant

Comments

@WieFel
Copy link

WieFel commented Sep 29, 2023

Is your feature request related to a problem? Please describe.
I have a use case of a more complex form, but am not sure how to handle it:
For example, let's say I want to have a form where I can enter the data for a Person (which has a name and age). The name and age are simple FormzInputs. For the simple case where we have just 1 person, we can store the 2 fields inside a Bloc's state, and that's fine.
But now, it should be possible to dynamically add an arbitrary number of entries of Persons to the form (e.g. via a "+" button). How could that be handled? Of course, every single block should be validated. In the end, the information of the complete form should be retrieved.

Describe the solution you'd like
I would like to see a bit more complex examples either in the docs or as an example app (which could be referenced in the docs).

Describe alternatives you've considered
I have tried to look for popular projects that use formz in combination with bloc, but couldn't find any.

Additional context
The UI to better imagine the use case:
Untitled-2022-10-25-1855(2)

@k00na
Copy link

k00na commented Mar 5, 2024

+1. I would also like to see some more complex examples.

@alestiago alestiago added needs triage Issue requires triage documentation Improvements or additions to documentation labels Mar 5, 2024
@tomarra tomarra moved this from Needs Triage to Backlog in VGV Open Source 🦄 🧙🌟 Mar 7, 2024
@tomarra tomarra added p3 Issues that we currently consider unimportant and removed needs triage Issue requires triage labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation p3 Issues that we currently consider unimportant
Projects
Status: Backlog
Development

No branches or pull requests

4 participants