flutter_form_builder
flutter_form_builder copied to clipboard
How can I handle the default selected item in FormBuilderDropdown?
Environment
"7.6.0"
Describe your question
How can I handle the default selected item in FormBuilderDropdown? When the date contains a value that is not in the items list or the value is null is there a way to set a default value instead of getting an error?
That's how Flutter's DropdownField works.
Also, remember that the 'error' is a failed assertion and happens only in debug mode. In release mode, the default value becomes null if the value set is not in the list.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.