RafaelBarbosatec / qr_code_dart_scan

A QR code scanner that works on both iOS and Android using dart decoder.
MIT License
15 stars 20 forks source link

Camera orientation lock #24

Closed kevincraig closed 4 months ago

kevincraig commented 4 months ago

We had a use case in our app that we needed to lock the camera orientation as we scan VIN barcodes on a regular basis that are often vertical.

I've add the ability on the Camera Controller to optionally add lockCaptureOrientation: DeviceOrientation.portraitUp for example. Not sure if anyone else needs the ability to do this but we did so I wanted to pass it along if was of any use.

QRCodeDartScanView( scanInvertedQRCode: true, lockCaptureOrientation: DeviceOrientation.portraitUp, onCapture: (Result result) {} )

RafaelBarbosatec commented 4 months ago

Hi @kevincraig ! Thanks so much for contributing! LGTM!