You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/pspdfkit-ios/latest.podspec'
271
271
end
272
-
```
272
+
```
273
273
274
274
12. Open `lib/main.dart` and replace the whole content with a simple example that will load a PDF document from local device filesystem:
275
275
@@ -385,7 +385,7 @@ To see PSPDFKit Flutter in action check out our [Flutter example app](example/).
385
385
386
386
Showing a PDF document inside your Flutter app is as simple as this:
387
387
388
-
```MyApp.dart
388
+
```MyApp.dart
389
389
showDocument() async {
390
390
try {
391
391
Pspdfkit.present("file:///document.pdf");
@@ -404,26 +404,26 @@ Q: I updated the Flutter plugin and I am getting the following error:
404
404
405
405
```bash
406
406
lib/main.dart:8:8: Error: Error when reading '../../.pub-cache/git/pspdfkit-flutter-b6241555b1ee3e816a0dce65145991c1a4477d94/lib/pspdfkit.dart': No such file or directory
407
-
import 'package:pspdfkit_flutter/pspdfkit.dart';
408
-
^
407
+
import 'package:pspdfkit_flutter/pspdfkit.dart';
408
+
^
409
409
lib/main.dart:37:7: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
410
-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
410
+
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
411
411
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
412
-
Pspdfkit.present(tempDocumentPath);
413
-
^^^^^^^^
412
+
Pspdfkit.present(tempDocumentPath);
413
+
^^^^^^^^
414
414
lib/main.dart:58:32: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
415
-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
415
+
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
416
416
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
A: If you were using version [1.10.3](https://github.com/PSPDFKit/pspdfkit-flutter/releases/tag/1.10.3) or earlier, you will need to update the imports in your Dart files like so:
0 commit comments