-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Access nested value of initialValues via attribute #239
Comments
Hi @vasilich6107, I haven't considered this yet, sounds like an interesting idea worth trying but maybe a bit challenging to implement. |
Would be awsome to have this! Maybe have a look into sembast package could help you to implement it. There is a implementation like that for order and filter in a query :) |
I am trying to implement this, guide me if I am on the right track.
Works fine for me, any suggestions?
|
Any chance this would be implemented or any alternative solution? |
I ended up flattening the map before assigning as initial value, and use |
Hi! |
Consider nested FormBuilder(
// ...
FormBuilderTextField(
name: 'foo',
// ...
),
NestedFormBuilder( // new class
name: 'inner',
// ...
FormBuilderTextField(
name: 'bar',
// ...
),
),
// ...
) value example: {
"foo": "some input value",
"inner":{
"bar" : "some inner input value"
}
} |
it work for me, I will PR soon @deandreamatias |
Any chance |
This comment was marked as spam.
This comment was marked as spam.
Would be cool to have this feature implemented |
Try using https://pub.dev/packages/flat, you will have some extra work, but this can solve most cases.
|
Hi. Thanks for your work.
Is there any chance to have possibility to access nested value in
initialValues
through theattribute
field?For example if I have deeply nested initialValues I would like to have possibility to set
attribute
likeitems.0.some.value
The text was updated successfully, but these errors were encountered: