mintware-de / flutter_barcode_reader

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

Strange behaviour on iOS 13 #151

Closed pdefuns closed 4 years ago

pdefuns commented 4 years ago

It looks like a special overlay and scans the underlying page first. Then switches to camera..

lookfirst commented 4 years ago

@YAPPDEF yea... will likely switch to this one... swift based, more modern and developer is responsive... https://github.com/AmolGangadhare/flutter_barcode_scanner

lookfirst commented 4 years ago

Just following up... yep, replaced this one with the one above and it is much better. Took me a bit longer cause I didn't setup my flutter project originally with swift, so I had to redo my ios folder... but glad I did... the above works great on ios13 and has a nice animation for the scanning line.

pdefuns commented 4 years ago

@lookfirst thanks! I'll check it out

appditto commented 4 years ago

This is because the default UIPresentationStyle has changed in iOS 13.

if (@available(iOS 13.0, *)) {
    [scannerViewController setModalPresentationStyle:UIModalPresentationFullScreen];
}

This should fix it, we made the change in our fork of this plugin here: https://github.com/bbedward/flutter_barcode_reader/commit/98869b04a546640f9652da1a6c5e7f1c0b209ba0