juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
1.01k stars 799 forks source link

qr scanner web version is not responsive - Solution [BUG] #522

Open Amanullahgit opened 2 years ago

Amanullahgit commented 2 years ago

Describe the bug The scanner width and height are not responsive in the web version even after designing a responsive UI using dart. I tried different Flutter techniques including html.window size. but still, since it is over-written in the package, it will take default size.

I have fixed the issue by editting package code of flutter_qr_web.dart file by following: from this: final size = Size(canvas.width?.toDouble() ?? 0, canvas.height?.toDouble() ?? 0); to this: final size = Size(html.window.outerWidth.toDouble(),html.window.outerWidth.toDouble());

Hope it saves someones time.

makruban commented 2 years ago

Hello, maybe do you know how to move this video along axes X and Y? Because It is not centered in ScanQRBox.