aakash-pamnani / image_input

A pacakage to be used for image input in flutter.
https://pub.dev/packages/image_input
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Camera/Gallery popup closes and default redirects to the gallery selection. #2

Open gaurav20gv opened 4 months ago

gaurav20gv commented 4 months ago

Dear @aakash-pamnani,

When using the library, I noticed that when the popup opens to select between the camera and the gallery, if the user clicks outside the popup, it defaults to the gallery. Ideally, clicking outside the popup should dismiss it without making a selection. Here are the steps to reproduce the issue:

Integrate the image_input library into a Flutter project. Trigger the image selection popup. Click outside the popup. Expected behaviour:

The popup should close without selecting either option. Actual behaviour:

The popup closes and default redirects to the gallery selection.

I believe this small fix would greatly enhance the user experience by preventing unintended selections.

aakash-pamnani commented 4 months ago

Hi @gaurav20gv Can you share which version you are using of image_input? Because this issue is solved in the latest version 0.0.5. And if you are using the latest version can you share your getPrefferedCameraDevice callback code.