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());
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.