mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 462 forks source link

Rotating orientation on iPhones only shows half the screen #61

Closed firsthour closed 4 years ago

firsthour commented 5 years ago

barcode_scan version 0.0.8 IOS version 11.4.1

Tested on iPhone 6 and iPhone 7.

https://i.imgur.com/3umeOrq.jpg

Start in portrait mode and then rotate the phone, it will switch to landscape mode but only the left side of the screen will show the camera.

Start in landscape mode and then rotate the phone, it will switch to portrait mode but only the top half of the screen will show the camera.

Semi-related to #56 in that I would like to disable landscape mode completely but an unsure how to do that on iPhones.

Thanks.

landscape

jakolion commented 5 years ago

Semi-related to #56 in that I would like to disable landscape mode completely but an unsure how to do that on iPhones.

You set this in the Info.plist with the key "UISupportedInterfaceOrientations". Using Xcode you can find the setting in the "Deployment Info".

image

The camera is not rotating then so this can be used as a workaround if landscape mode isn't a requirement for the app.

rjahn commented 5 years ago

I have the same problem but my app requires landscape mode, to show more information (sometimes).

Mythar commented 5 years ago

Still no fix using barcode_scan version 1.0.0

SaltumDis commented 5 years ago

Still having this issue 😢

mertcanbs commented 4 years ago

This issue is still present where locking device orientation is not possible.

devtronic commented 4 years ago

Solved in #167

devtronic commented 4 years ago

Will be available in the next release