flutter_cached_pdfview icon indicating copy to clipboard operation
flutter_cached_pdfview copied to clipboard

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

Open wilz05 opened this issue 4 years ago • 5 comments

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

wilz05 avatar Nov 11 '21 05:11 wilz05

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

ncuillery avatar Nov 15 '21 19:11 ncuillery

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

wilz05 avatar Nov 16 '21 05:11 wilz05

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

doanngoctu95 avatar Apr 12 '22 03:04 doanngoctu95

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

jlemanski1 avatar Aug 15 '22 17:08 jlemanski1

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

myselfuser1 avatar Mar 17 '23 12:03 myselfuser1