-
Notifications
You must be signed in to change notification settings - Fork 19
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
setPage fails with TypeError. #12
Comments
Hi, |
@arnaudelub have you tried to run the code? :) It does set the page yes, but it throws and error right after when it tries to cast the _currentPage integer returned in the platform channel to bool in the dart code. You can fix it using a try catch like below, but not the finest :)
|
Ok, thank you, I'll check that |
setPage returns int:
flutter_fullpdfview/ios/Classes/FlutterFullPDFView.m
Line 293 in 037a5a1
But the caller expects a boolean to be returned:
flutter_fullpdfview/lib/flutter_fullpdfview.dart
Line 356 in 037a5a1
The text was updated successfully, but these errors were encountered: