theyakka/qr.flutter

Can't install package because of version conflicts

sebastienklaus opened this issue · 7 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

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

Narven commented

Use

  pdf:
  printing: ^5.0.0
  qr_flutter: ^4.0.0

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 @Narven @gmcdowell @sebastienklaus the maintainer seems inactive, I have fixed the issue in my PR: #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 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 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