flutter-form-builder-ecosystem / form_builder_image_picker

Images picker field for FlutterFormBuilder. Get images from gallery or camera
https://pub.dev/packages/form_builder_image_picker
BSD 3-Clause "New" or "Revised" License
33 stars 62 forks source link

Directly open camera or gallery if only one of them is set as `availableImageSources` #52

Open sudormrfbin opened 1 year ago

sudormrfbin commented 1 year ago

Is there an existing issue for this?

Package/Plugin version

4.0.0

What you'd like to happen

#40 added the ability to control the image source by setting the `availableImageSources` option. If there's only one option set in it, for example:

availableImageSources = [ImageSourceOption.gallery]

the bottom sheet is displayed even though there's only one action to take. Directly opening the gallery in this case would a better flow.

Alternatives you've considered

No response

Aditional information

No response

deandreamatias commented 3 months ago

Hi! If do you want create a PR for this, I could review and merge. Thanks!