-
Notifications
You must be signed in to change notification settings - Fork 324
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
Flutter qr_flutter package incompatible with printing package #186
Comments
@abdulrehmananwar I thought updating the qr package that this package depends upon would remove this issue but the problem is that in the updated qr package version which is 3.0.1, the QrImage widget type is changed from So, did u find a solution? |
There is a mismatch between qr_flutter and printing. "printing: any" gives warning:
"printing: ^5.9.2" gives error:
|
This will keep happening and if u try to change the version of qr package this package depends upon, you will not be able to use the QrImage widget which would then throw an error. so I suggest you use:
which has all the code you might require in your project from outputting an image to outputting a printed document in the example they have provided in the demo folder of their repo at: https://github.com/DavBfr/dart_barcode |
This worked with me: pdf:
printing: ^5.0.0
qr_flutter: ^4.0.0 |
@Narven @waqadArshad @ystekno @abdulrehmananwar the maintainer seems inactive, I have fixed the issue in my PR: #204 And uploaded a new version of the package ( You can report issues with the package in my new repo: https://github.com/vanyasem/qr.widget |
when i add printing: ^5.9.2 in pubspec.yaml it show follow error please resolve it
Because qr_flutter >=4.0.0 depends on qr ^2.0.0 and barcode >=2.2.0 depends on qr ^3.0.0, qr_flutter >=4.0.0 is incompatible with barcode >=2.2.0.
And because pdf >=3.7.1 depends on barcode ^2.2.0, qr_flutter >=4.0.0 is incompatible with pdf >=3.7.1.
And because printing 5.9.2 depends on pdf ^3.7.2 and no versions of printing match >5.9.2 <6.0.0, qr_flutter >=4.0.0 is incompatible with printing ^5.9.2.
So, because TAG depends on both printing ^5.9.2 and qr_flutter ^4.0.0, version solving failed.
pub get failed (1; So, because TAG depends on both printing ^5.9.2 and qr_flutter ^4.0.0, version solving failed.)
The text was updated successfully, but these errors were encountered: