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
Q: I updated the Flutter library and I am getting the following error:
289
-
290
-
```bash
291
-
lib/main.dart:8:8: Error: Error when reading '../../.pub-cache/git/pspdfkit-flutter-b6241555b1ee3e816a0dce65145991c1a4477d94/lib/pspdfkit.dart': No such file or directory
292
-
import 'package:pspdfkit_flutter/pspdfkit.dart';
293
-
^
294
-
lib/main.dart:37:7: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
295
-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
296
-
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
297
-
Pspdfkit.present(tempDocumentPath);
298
-
^^^^^^^^
299
-
lib/main.dart:58:32: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
300
-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
301
-
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:
314
-
315
-
```diff
316
-
-import 'package:pspdfkit_flutter/pspdfkit.dart';
317
-
+import 'package:pspdfkit_flutter/src/main.dart';
318
-
```
319
-
320
-
# Troubleshooting
321
-
322
-
## Flutter Updates
323
-
324
-
To update Flutter to the latest version, all you have to do is run `flutter upgrade`.
286
+
# Migrating from Previous Version
325
287
326
-
## Flutter Configuration Problems
288
+
To upgrade PSPDFKit forFlutterin your app, please refer to the [Upgrade and Migration Guides][flutter upgrade] section.
327
289
328
-
Among the tools provided by Flutter, there is `flutter doctor`, a very handy program that checks your system configuration for you and provides step-by-step actions to take in case of problems.
329
-
330
-

331
-
332
-
The verbose mode of flutter doctor is even more helpful; it prints out extensive information about the nature of an issue and how to fix it. To run the verbose mode, all you have to do is type `flutter doctor -d`.
333
-
334
-
### CocoaPods Conflicts With Asdf
290
+
# Troubleshooting
335
291
336
-
If [asdf](https://github.com/asdf-vm/asdf) is installed in your machine it might create problems when running Cocoapods, and Flutter will erroneously suggest to install CocoaPods via brew with `brew install cocoapods`. This won't work because forthis specific configuration CocoaPods needs to be installed via [RubyGems](https://rubygems.org/). To fix this configuration issue just type`gem install cocoapods && pod setup`.
292
+
For Troubleshooting common issues you might encounter when setting up PSPDFKit forFlutter, please refer to the [Troubleshooting][] section.
0 commit comments