flutter-form-builder-ecosystem / flutter-form-builder-ecosystem/form_builder_image_picker

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

Open
#52 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
34
Forks
65
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Package/Plugin version

4.0.0

### What you'd like to happen

```Markdown
#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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.