binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

Upgrade dependency flutter_pdfview in ^0.4.0-nullsafety version to support Android V2 embedding #64

Open wilz05 opened 3 years ago

wilz05 commented 3 years ago

Please upgrade the dependencies to the newer version, getting below error in Version ^0.4.0-nullsafety.

The plugins flutter_pdfview use a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Current version • Flutter version 2.5.3 at "My flutter SDK Location" • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700 • Engine revision d3ea636dc5 • Dart version 2.14.4

ncuillery commented 3 years ago

I guess this package has to wait for https://github.com/endigo/flutter_pdfview/issues/154

wilz05 commented 3 years ago

I think they have fixed it, please check the changelog https://pub.dev/packages/flutter_pdfview/changelog

doanngoctu95 commented 2 years ago

i faced same issue, pls update with newest version of package flutter_pdfview. Tks so much.

jlemanski1 commented 2 years ago

Hey everyone, since the package has not been maintained for some time and the deadline for the Android SDK is rapidly approaching. The package has been forked and updated. The repo can be found here.

Pubspec publishing is in the works, but in the meantime you're able to update your pubspec.yaml to use it now:

flutter_cached_pdfview:
    git:
      url: https://github.com/BASE1com/flutter_cached_pdfview
myselfuser1 commented 1 year ago

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA