Closed jeromexiong closed 3 years ago
在iOS中调用setPage返回的是当前的page,但是Android和flutter中解析的都是bool值;FlutterPDFView.m返回需要修改为true
setPage
FlutterPDFView.m
true
- (void)setPage:(FlutterMethodCall*)call result:(FlutterResult)result { NSDictionary<NSString*, NSNumber*>* arguments = [call arguments]; NSNumber* page = arguments[@"page"]; [_pdfView goToPage: [_pdfView.document pageAtIndex: page.unsignedLongValue ]]; result(YES); }
The fix was made in version 0.3.1
在iOS中调用
setPage
返回的是当前的page,但是Android和flutter中解析的都是bool值;FlutterPDFView.m
返回需要修改为true