diff --git a/lib/src/fields/form_builder_image_picker.dart b/lib/src/fields/form_builder_image_picker.dart index fb007902e6..19e731341e 100644 --- a/lib/src/fields/form_builder_image_picker.dart +++ b/lib/src/fields/form_builder_image_picker.dart @@ -184,12 +184,12 @@ class FormBuilderImagePicker extends FormBuilderField> { onImageSelected: (image) { state.requestFocus(); field.didChange( - [...field.value, image]); + [...?field.value, image]); Navigator.pop(state.context); }, onImage: (image) { field.didChange( - [...field.value, image]); + [...?field.value, image]); onChanged?.call(field.value); Navigator.pop(state.context); },