Open eldarkk opened 1 month ago
just add flutter_pdfview: ^1.3.3 in your pubspec.yaml
@eldarkk Sorry for that currently I don't have time to maintain this package, as @Halipov said you could use another version of flutter_pdfview
flutter_cached_pdfview is just a wrapper for flutter_pdfview to add some features and make it easier to use
any flutter_pdfview version between >1.0.0 and <2.0.0 should work https://github.com/binSaed/flutter_cached_pdfview/blob/944f87274f3e10ea25f9073791bfdad42c6d1407/pubspec.yaml#L22
just add flutter_pdfview: ^1.3.3 in your pubspec.yaml
Thank's for the workaround 👍 it fixed the crash.
@binSaed: I just cloned your repo and run the example to find out, if can fix it. But i could not reproduce it: In your example, calling PDF.cachedFromUrl()
does not crash on an iPhone 16, iOS 18, Simulator while running my own app with the same implementation does. Any ideas why? Is this just a pubspec issue or what?
As I assumed, it's a pubspec.lock issue. Upgrade your dependencies to fix this issue, there is no need to add flutter_pdfview as an additional package. This is the way i fixed the issue:
1) flutter clean
- clean your Flutter project
2) flutter pub upgrade
- compared to flutter pub get
this will upgrade all dependencies to the next minor versions. Alternatively you can delete your pubspec.lock
file and run flutter pub get
.
3) cd ios
- go to ios Folder
4) rm Podfile.lock
- delete your Podfile.lock to upgrade the plugins
5) pod install --repo-update
- reinstall your plugins
Hello, @binSaed. The problem still exists in iOS 18.1, when zoom in and zoom out , even though I updated to the latest versions of both flutter_pdfview and flutter_cached_pdfview.
Describe the bug App crashes when opens pdf file
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Xcode crash report