Not work with other Size of Container or SizedBox
lexia0611 opened this issue · 1 comments
lexia0611 commented
QR Code will not work (can't read anything) when different size other than 300 x 600 like Example. Tried fit property not work too
FMorschel commented
Hi, I've used flutter_qr_mobile_vision for some time and had no problems with size, can you make a minimal reproducible code and run flutter doctor -v
please?
e.g. I've used this package with floating_overlay package and it works just fine. SizedBox.fromSize
of a fraction of MediaQuery.of(context).size
(so that the proportions are right) and it worked just fine even scaling.
SizedBox.fromSize(
size: MediaQuery.of(context).size * 0.3,
child: QrCamera(
qrCodeCallback: debugPrint,
),
),