Error: Type 'DecoderCallback' not found.
Describe the bug After upgrading to Flutter 3.16 and dart 3.2 with useMaterial3 as the default UI. This particular error below kept affecting the build run. Error (Xcode): ../../../.pub-cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: Type 'DecoderCallback' not found.
To Reproduce Steps to reproduce the behavior:
- Upgrade to latest flutter stable
- Run your app using latest pdfx
- Run and build the app after all necessary update and flutter clean
- Error (Xcode): ../../../.pub-cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: Type 'DecoderCallback' not found.
Expected behavior Package owner to review and fix error
Screenshots
noticed a commit already made here https://github.com/ScerIO/packages.flutter/pull/452/commits/88f153a6247f27577103df1058c4581be6734a72#diff-53975f0ac26cbb640863a9aba3820c740704f0c98e1ad0c0a5241885e3d2aa9e
Duplicate of: #448
Please check the new version on PubDev, it has been updated to 2.6.0 and includes the fix for the DecoderCallback issue.
Because file_previewer 0.1.0 depends on pdfx ^2.4.0 and no versions of file_previewer match >0.1.0 <0.2.0, file_previewer ^0.1.0 requires pdfx from hosted. So, because opportunity depends on both file_previewer ^0.1.0 and pdfx from git, version solving failed. exit code 1 I am getting this issue when I try to save pubspec.yaml