juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
999 stars 759 forks source link

[FEATURE] List available cameras and allow selecting a specific one #672

Open daniloapr opened 1 year ago

daniloapr commented 1 year ago

Is your feature request related to a problem? Please describe. Sometimes the library picks a wide camera (0.5x zoom) instead of the default one (1.0x), making it hard to focus scan QR Codes, specially small ones. It's happening right now with the iPhone 14 Pro Max which has 3 cameras.

Describe the solution you'd like Add a feature to list available cameras and select a specific one.

Additional context Selecting the 1.0x by default is the perfect solution and has been working for most devices, but I believe that mapping it for every single device is a huge effort, and this problem with the iPhone 14 Pro Max is just an example. Thus allowing the user to select different cameras would be a great fallback.

Image of an iPhone 14 Pro Max with difficulty to focus the QR Code.

IMG_0224

luckyship commented 6 months ago

my pad only have front camera, i also need this feature. otherwise, it can't find the valid camera