Skip to content

flutter-form-builder-ecosystem/form_builder_image_picker

Form Builder Image Picker

Images picker field for FlutterFormBuilder. Get images from gallery or camera.

Pub Version GitHub Workflow Status CodeFactor Grade Codecov


Features

  • Pick image from gallery or camera
  • Show images in form
  • Support several images types: Uint8List, XFile, String (url) or ImageProvider

Use

Setup

Since this package makes use of image_picker package, for platform specific setup, follow the instructions here

Basic use

FormBuilder(
  child: Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      FormBuilderImagePicker(
        name: 'photos',
        decoration: const InputDecoration(labelText: 'Pick Photos'),
        maxImages: 1,
      ),
    ],
  ),
),

Only specific pickers

FormBuilder(
  child: Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      FormBuilderImagePicker(
        name: 'noCamera',
        availableImageSources: const [ImageSourceOption.gallery],
      ),
    ],
  ),
),

See pub.dev example tab or github code for more details

Support

Contribute

You have some ways to contribute to this packages

  • Beginner: Reporting bugs or request new features
  • Intermediate: Implement new features (from issues or not) and created pull requests
  • Advanced: Join to organization like a member and help coding, manage issues, dicuss new features and other things

See contribution file for more details

Questions and answers

You can question or search answers on Github discussion or on StackOverflow

Donations

Donate or become a sponsor of Flutter Form Builder Ecosystem

Become a Sponsor

Roadmap

Ecosystem

Take a look to our awesome ecosystem and all packages in there

Thanks to

All constributors