packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

Error: Type 'DecoderCallback' not found.

Open Mvhd opened this issue 2 years ago • 4 comments

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:

  1. Upgrade to latest flutter stable
  2. Run your app using latest pdfx
  3. Run and build the app after all necessary update and flutter clean
  4. 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 Screenshot 2023-11-18 at 18 58 47

Mvhd avatar Nov 18 '23 17:11 Mvhd

noticed a commit already made here https://github.com/ScerIO/packages.flutter/pull/452/commits/88f153a6247f27577103df1058c4581be6734a72#diff-53975f0ac26cbb640863a9aba3820c740704f0c98e1ad0c0a5241885e3d2aa9e

Mvhd avatar Nov 18 '23 18:11 Mvhd

Duplicate of: #448

urbanjagodic avatar Nov 20 '23 09:11 urbanjagodic

Please check the new version on PubDev, it has been updated to 2.6.0 and includes the fix for the DecoderCallback issue.

ManuelRauber avatar Feb 11 '24 08:02 ManuelRauber

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

VD15S avatar Jun 19 '24 08:06 VD15S