ScerIO/packages.flutter

Error in Pdfx v2.5.0: 'DecoderCallback' Type Issue in PdfPageImageProvider

Closed this issue · 5 comments

I encountered an issue with Pdfx v2.5.0 where the 'DecoderCallback' type is not recognized in the PdfPageImageProvider class. This results in the error "Type 'DecoderCallback' not found" and "The method 'instantiateImageCodec' isn't defined for the class 'PdfPageImageProvider'".

Use Pdfx v2.5.0 in a Flutter project.
Observe the error related to 'DecoderCallback' and 'instantiateImageCodec'.

I expected the Pdfx package to function without errors related to 'DecoderCallback' and 'instantiateImageCodec' when using PdfPageImageProvider.

Screenshots
pdfx issue

Flutter Environment
Flutter 3.16.5
Dart 3.2.3

I am using Pdfx v2.5.0 in a Flutter project to render PDF documents. The error occurs specifically in the PdfPageImageProvider class when attempting to load PDF pages. If there's any additional information required, please let me know.

@Murtaza-Tn #448 (comment) its fixed on Github but not published on pub.dev

@zezo357 @SergeShkurko Could you please provide an estimated timeline for when the fix will be published on pub.dev?

@zezo357 @SergeShkurko Could you please provide an estimated timeline for when the fix will be published on pub.dev?

I am not the maintainer of the package, I just saw your issue and I had it too,

So I wanted to save your time that's all,

For the release, there are a lot of people waiting for the same issue, so I don't really know

@zezo357 @SergeShkurko Could you please provide an estimated timeline for when the fix will be published on pub.dev?

I am not the maintainer of the package, I just saw your issue and I had it too,

So I wanted to save your time that's all,

For the release, there are a lot of people waiting for the same issue, so I don't really know

Thanks a bunch for chiming in! Your shared experience saved me some serious time.

The issue is fixed in the repository..