FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

scan barcode/qr code camera view stretched on Android #4687

Closed madrenderman closed 4 weeks ago

madrenderman commented 1 month ago

Can we access your project?

Current Behavior

I have a problem with scan barcode/QR code action. I have set a button in my app to scan qr codes. It seems to work fine but when I test it on android (with apk export) and press the qr code scan, the camera view looks distorted in height, the image that the camera captures is stretched and consequently qrcode is not recognised because its shape is not seen correctly. I'm attaching some images to explain better. scan barcode problem

Expected Behavior

The camera view shouldn't be stretched scan barcode problem

Steps to Reproduce

  1. create a button
  2. on the new button add an action
  3. search for "Scan barcode/QR code" action and add it
  4. test the app on an Android device (apk download)

Reproducible from Blank

Bug Report Code (Required)

IT4oh8jbuJVOxN9c+KXqdcAxnSQ6NUx/bIIJkspOGDsdF4iuPOxzac+kUBdWTtDnS3xLKEWLkns0wveLhvL9JvYqaCScG4M6zKliewriJUC/aoTXBbqJdWtSTPpgGmK435izqiNTNspqdCEgw2GMA+6Qfz7bQJv7Zwh9f6PHaOI=

Visual documentation

lui

Environment

- FlutterFlow version: 5.0.8+
- Platform: Web
- Browser name and version: Chrome 130.0.6723.70
- Operating system and version affected: Windows 11

Additional Information

No response

rzambroni commented 1 month ago

Hello @madrenderman,

Thank you for bringing this to our attention. I've noticed similar image distortion on Android with the QR scanner. However, it still seems capable of accurately reading a wide range of QR codes. This distortion seems to stem from the underlying package FlutterFlow uses for the scanner, flutter_barcode_scanner.

If you have specific cases where a QR code successfully scans on iOS but fails on Android, that could indicate a potential bug in the package or possibly an issue with the QR code generation. Any additional details or examples would be helpful for further investigation!

Thank you!

madrenderman commented 4 weeks ago

Hello @rzambroni , actually it looks like you're right. I had the chance to run some tests, and even though the camera view appears stretched, the QR code scan works. So it's not a big issue, just an "aesthetic" problem. Thank you :)

rzambroni commented 4 weeks ago

great to hear! thanks!