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

Feature request : initialize form with global values #47

Closed
benoitverstraete opened this issue Apr 9, 2019 · 2 comments
Closed

Feature request : initialize form with global values #47

benoitverstraete opened this issue Apr 9, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@benoitverstraete
Copy link

Hi @danvick,

Is it possible to load initial values in the form only once instead of setting all field's "initialValue" manually ?

Maybe something like this :

_formBuilderKey.currentState.value = <String, dynamic>{ 'firstName': 'Initial value'};

Or in a new property (FormBuilder.initialValues for example).

Thanks a lot for your help and the latest improvements in the package !

@danvick
Copy link
Collaborator

danvick commented Apr 15, 2019

It's a good idea that I've been considering but I think it will be planned for after version 3.0.0 release. May be a duplicate of #31

@danvick danvick added the enhancement New feature or request label Jul 26, 2019
@danvick
Copy link
Collaborator

danvick commented Jul 29, 2019

Hi @benoitverstraete,
As of version 3.3.0, one can set the initial value for the entire form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants