CrossPT / flutter_plugin_pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
BSD 3-Clause "New" or "Revised" License
92 stars 309 forks source link

flutter_plugin_pdf_viewer 1.0.7 depends on flutter_advanced_networkimage ^0.5.0 and no versions of flutter_plugin_pdf_viewer match >1.0.7 <2.0.0 #71

Open minhduc1827 opened 4 years ago

M6268 commented 4 years ago

same issue

aarjan commented 4 years ago

Same issue. While upgrading flutter to 1.7. The flutter_svg v0.13.0 fails. I can't upgrade the flutter_svg since, this package is dependent on that specific version.

michaelmairegger commented 4 years ago

Same issue here when using _flutter_plugin_pdfviewer in connection with _cached_networkimage. If i update _cached_networkimage beyond 2.0.0 then pub get fails

ShubhamKarki commented 4 years ago

Same Issue here

Because flutter_advanced_networkimage 0.5.0 depends on flutter_svg ^0.13.0 and no versions of flutter_advanced_networkimage match >0.5.0 <0.6.0, flutter_advanced_networkimage ^0.5.0 requires flutter_svg ^0.13.0.

And because flutter_plugin_pdf_viewer 1.0.7 depends on flutter_advanced_networkimage ^0.5.0, flutter_plugin_pdf_viewer 1.0.7 requires flutter_svg ^0.13.0.

So, because app depends on both flutter_plugin_pdf_viewer 1.0.7 and flutter_svg 0.17.3, version solving failed. pub get failed (1; So, because app depends on both flutter_plugin_pdf_viewer 1.0.7 and flutter_svg 0.17.3, version solving failed.)

fabiancrx commented 4 years ago

Had the same issue, and package author does not seem likely to respond so I forked the project and fixed the dependencies problem to have it running. If you are in need just add this to your pubspec.yaml.

  flutter_plugin_pdf_viewer:
    git: https://github.com/fabiancrx/flutter_plugin_pdf_viewer.git

It is fully functional, tested with flutter 1.17.0

premy commented 3 years ago

Thanks @fabiancrx

premy commented 3 years ago

@fabiancrx When there's only 1 page in the pdf file, the picker crashes the app. And also I would like to localize the picker dialog (it says 'Pick a image' and I would like to show that in portuguese, since the app is going to be used in Brazil). Could you pls provide me some instructions on how to fork it and apply these changes (since I guess you're ok with the english dialog)? I've never done anything like this before. Thanks in advance.