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

Can't install package because of version conflicts #198

Open
sebastienklaus opened this issue Dec 7, 2022 · 6 comments
Open

Can't install package because of version conflicts #198

sebastienklaus opened this issue Dec 7, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@sebastienklaus
Copy link

sebastienklaus commented Dec 7, 2022

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 sebastienklaus added the bug Something isn't working label Dec 7, 2022
@gmcdowell
Copy link

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

@Narven
Copy link

Narven commented Dec 16, 2022

Use

  pdf:
  printing: ^5.0.0
  qr_flutter: ^4.0.0

@BraveEvidence
Copy link

@nashihu
Copy link

nashihu commented Mar 27, 2023

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

@vanyasem
Copy link
Contributor

vanyasem commented May 3, 2023

@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

@nashihu
Copy link

nashihu commented May 3, 2023

@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

@vanyasem
Copy link
Contributor

vanyasem commented May 4, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants