Form builder image picker for flutter

form_builder_image_picker

Field for picking image(s) from Gallery or Camera for flutter_form_builder package

Usage

FormBuilder(
  child: Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      FormBuilderImagePicker(
        name: 'photos',
        decoration: const InputDecoration(labelText: 'Pick Photos'),
        maxImages: 1,
      ),
      const SizedBox(height: 15),
      RaisedButton(onPressed: (){
        if(_formKey.currentState.saveAndValidate()){
          print(_formKey.currentState.value);
        }
      })
    ],
  ),
),

GitHub

View Github