Skip to content
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

InputTooLongException for not mixed character #20

Open
sedem7 opened this issue Jun 7, 2019 · 6 comments
Open

InputTooLongException for not mixed character #20

sedem7 opened this issue Jun 7, 2019 · 6 comments

Comments

@sedem7
Copy link

sedem7 commented Jun 7, 2019

I have the following code:

String barcode = '063994519708649896901260100447252359443123456781508151013320'; // length = 60
var qr = QrCode(2, QrErrorCorrectLevel.M)
  ..addData(barcode)
  ..make();

Specification are M for error level and version 2 (25x25).

If a try this code, the I get error: QrInputTooLongException: Input too long. 492 > 224.

It looks like that is trying to use Databits (mixed) for calculation.
How can I specify that my barcode is always just digits, and that I want to use Numeric (not mixed) option, which allows 63 characters?

I should mention that current version that we use is Android with xzing library, where we don’t get such an error.

@sionsxie
Copy link

Same question~~

@kevmoo
Copy link
Owner

kevmoo commented Jun 12, 2019

Pull requests accepted!

@nicktopcn
Copy link

use different version. at least version 5,

QrImage( padding: EdgeInsets.all(0), version: 5, errorCorrectionLevel:QrErrorCorrectLevel.L, data: "https://etherscan.io/tx/0x9a9eab4bbff7aff754b2fbb14453ebf5f4d2809367ab6ec93e8b7579f41c144d", size: 100.0, )

@DanielSoCra
Copy link

Pull requests accepted!
@kevmoo

Where is the according PR?

use different version. at least version 5,

If you have a QR Code that requires Version 40 this is not an option.

@kevmoo
Copy link
Owner

kevmoo commented Mar 2, 2020

I don't think anyone has created a PR yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants