-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embeddedImage not working #64
Comments
I'm not really sure what you want me to do here. Whether the QR code can be scanned is dependent on the scanner and not the generator. The top QR code could be scanned using the software I tried (Samsung S10 Camera). The bottom one didn't work. You could try manually setting a higher version # and see if that improves the readability. |
ok thank you @lukef |
hi, @lukef . I also found the same bug. EmbeddedImage make qr code can't be scanned. this is my code: Container(
width: widget.pageWidth,
height: 250,
alignment: Alignment.center,
child: QrImage(
backgroundColor: Colors.white,
data: "http://www.github.com",
embeddedImage:
AssetImage("assets/images/icon_logo_white_bg.png"),
embeddedImageStyle:
QrEmbeddedImageStyle(size: Size(20, 20)),
version: QrVersions.auto,
size: 250,
),
) when I set but, when I set embeddedImage gets bigger, Change I think the QR code should change (but it doesn't) when 'embeddedImage' gets bigger, otherwise the logo will overwrite the valid information of the QR code, so that the observable part of the QR code cannot be recognized by the scanner, do you think? Look forward to your reply. |
@walterFeng have you try to set error correction level = |
@mychaelgo thank you, It is works for me. but, When the EmbeddedImage-Size exceeds a certain number (e.g. 100), it will still not be able to scan. How do I know the EmbededImage-Size maximum I can assign? |
is the Embedded Image size cover > 30% of the Qr Code? |
got it. It is works for me when the Embedded Image size cover < 30%. thank you @mychaelgo |
Wrapping QrImage in a container worked for me
|
This code worked for me with embedded Image
|
If anybody stumbles across this same problem, just like me...: Unfortunately this isn't mentioned anywhere in the documentation |
Describe the bug
embeddedImage make qr code can't be scanned.
To Reproduce
Expected behavior
User must be able to scan qr code with logo in the center
Screenshots
![Screen Shot 2019-10-18 at 09 22 45](https://user-images.githubusercontent.com/4651658/67062461-8d035780-f18d-11e9-8523-4127c7cf8172.png)
![Screen Shot 2019-10-18 at 09 31 07](https://user-images.githubusercontent.com/4651658/67062466-8ecd1b00-f18d-11e9-86fb-9a90a4a0654c.png)
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: