-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug plugin not working #16
Comments
I have the same error on version 2.1.0. I upgraded from 2.0.0-nullsafety. |
same error, any workaround? i'm on flutter 2.2.1 |
What is your flutter , and dart version? |
The error occurred after "pub upgrade". Latest version library: pdf_viewer_jk: ^2.1.0 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS |
The bug arises after upgrade to Flutter 2.2. It was OK with Flutter 2.0. I will be publishing an update soon for Flutter 2.2. |
published pdf_viewer_jk-2.1.3.. Please upgrade. |
hi,
i'm using this plugin and out of nowhere the plugin stopped working and gives this error:
/opt/flutter/.pub-cache/hosted/pub.dartlang.org/pdf_viewer_jk-2.1.2/lib/src/document.dart:75:14: Error: The class 'File' is abstract and can't be instantiated.
file = File("${dir.path}/file.pdf");
^^^^
/opt/flutter/.pub-cache/hosted/pub.dartlang.org/pdf_viewer_jk-2.1.2/lib/src/document.dart:83:26: Error: Non-nullable variable 'file' must be assigned before it can be used.
document._filePath = file.path;
^^^^
/opt/flutter/.pub-cache/hosted/pub.dartlang.org/pdf_viewer_jk-2.1.2/lib/src/document.dart:86:24: Error: Non-nullable variable 'file' must be assigned before it can be used.
{'filePath': file.path, 'clearCacheDir': clearPreviewCache});
^^^^
edit:
I also tested with the code that is in the github repository and gives the same problem
The text was updated successfully, but these errors were encountered: