flutter_plugin_pdf_viewer icon indicating copy to clipboard operation
flutter_plugin_pdf_viewer copied to clipboard

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

Open minhduc1827 opened this issue 5 years ago • 7 comments

minhduc1827 avatar May 09 '20 10:05 minhduc1827

same issue

M6268 avatar May 11 '20 13:05 M6268

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.

aarjan avatar May 11 '20 14:05 aarjan

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

michaelmairegger avatar May 11 '20 18:05 michaelmairegger

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.)

ShubhamKarki avatar May 19 '20 13:05 ShubhamKarki

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

fabiancrx avatar Jun 23 '20 22:06 fabiancrx

Thanks @fabiancrx

premy avatar Aug 03 '20 20:08 premy

@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.

premy avatar Aug 03 '20 21:08 premy