juliuscanute / qr_code_scanner

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

[BUG] There was a blank screen before "scanning screen" display #551

Open daihere1993 opened 2 years ago

daihere1993 commented 2 years ago

Describe the bug Take the official example as an instance, when "qrView" clicked there is a blank screen(almost display 2s) before scanning screen, you can see below screenshots.

There is any way to avoid that "blank screen" ?

Flutter information Always provide the output of flutter doctor -v as it is needed in order to know on which Flutter versions the bug exists in.

Device (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem. IMG_1288

// Unexpected blank screen IMG_1290

IMG_1292

Additional context Add any other context about the problem here.

GeceGibi commented 2 years ago

same here

tashi146 commented 2 years ago

This is is already raised here. For workaround use https://github.com/juliuscanute/qr_code_scanner/issues/550#issuecomment-1145511012

yogithesymbian commented 2 years ago

This is is already raised here. For workaround use #550 (comment)

my issue come after tried update to flutter 3 we need to resume camera in first open. in flutter 2 its automatically view / not blank screen ( black screen ) hope will be fix

jackgitsource commented 1 year ago

Fix it by set Scan page's Scaffold background color.

You can use : backgroundColor: Colors.black.withOpacity(1)

image