qr.flutter icon indicating copy to clipboard operation
qr.flutter copied to clipboard

Can't install package because of version conflicts

Open sebastienklaus opened this issue 1 year ago • 6 comments

Hi,

I actually try to install this package but there is some conflicts with other packages : pdf & printing. I see some issues about this, but non of them solve the problem. Can someone help me with this ?

pdf: ^3.8.3
printing: ^5.9.2
qr_flutter: ^4.0.0

With flutter pub get, this message shows up :

Because no versions of qr_flutter match >4.0.0 <5.0.0 and qr_flutter 4.0.0 depends on qr ^2.0.0, qr_flutter ^4.0.0 requires qr ^2.0.0.
And because pdf >=3.8.3 depends on barcode ^2.2.3 which depends on qr ^3.0.0, qr_flutter ^4.0.0 is incompatible with pdf >=3.8.3.
So, because bee_appli depends on both pdf ^3.8.3 and qr_flutter ^4.0.0, version solving failed.
Running "flutter pub get" in bee_appli...                               
pub get failed (1; So, because bee_appli depends on both pdf ^3.8.3 and qr_flutter ^4.0.0, version solving failed.)

flutter doctor -v :

[✓] Flutter (Channel stable, 3.3.9, on Ubuntu 22.04.1 LTS 5.15.0-53-generic, locale fr_FR.UTF-8)
    • Flutter version 3.3.9 on channel stable at /home/sklaus/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (il y a 2 semaines), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

sebastienklaus avatar Dec 07 '22 10:12 sebastienklaus

As mentioned in #196 the issue has already been resolved.. it just needs to be published. Any chance this could be sorted?

gmcdowell avatar Dec 08 '22 00:12 gmcdowell

Use

  pdf:
  printing: ^5.0.0
  qr_flutter: ^4.0.0

Narven avatar Dec 16 '22 16:12 Narven

This might help https://www.youtube.com/watch?v=9ADSWmPCJMg&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=6 https://www.youtube.com/watch?v=ZRUE1i15TYw&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=7

BraveEvidence avatar Mar 08 '23 07:03 BraveEvidence

after checking pubspec.lock, using

  pdf:
  qr_flutter: ^4.0.0

is equal to

  pdf: ^1.3.13
  qr_flutter: ^4.0.0

and breaks my current code. i'll go with qr_flutter master instead

nashihu avatar Mar 27 '23 10:03 nashihu

@nashihu @Narven @gmcdowell @sebastienklaus the maintainer seems inactive, I have fixed the issue in my PR: https://github.com/theyakka/qr.flutter/pull/204

And uploaded a new version of the package (4.1.0): https://pub.dev/packages/qr_widget

You can report issues with the package in my new repo: https://github.com/vanyasem/qr.widget

vanyasem avatar May 03 '23 19:05 vanyasem

@vanyasem thanks. the pub.dev has been updated. hey did u just override the qr_flutter with your own repo? i thought it's impossible lol

nashihu avatar May 03 '23 22:05 nashihu

@nashihu no, I made a NEW repo called qr_widget with updated code

The library was renamed to qr_widget You have to change all imports form import 'package:qr_flutter/qr_flutter.dart'; to import 'package:qr_widget/qr_widget.dart'; Please take your time to read the README https://github.com/vanyasem/qr.widget

vanyasem avatar May 04 '23 03:05 vanyasem