Open Munsif-Ali opened 11 months ago
After upgrading flutter to 3.16.0. the pdfx package is giving this error after running the project
pdfx
/C:/Users/Dubai%20Laptops/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: Type 'DecoderCallback' not found. ImageStreamCompleter load(PdfPageImageProvider key, DecoderCallback decode) => ^^^^^^^^^^^^^^^ /C:/Users/Dubai%20Laptops/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: 'DecoderCallback' isn't a type. ImageStreamCompleter load(PdfPageImageProvider key, DecoderCallback decode) => ^^^^^^^^^^^^^^^ /C:/Users/Dubai%20Laptops/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:70:14: Error: 'ImmutableBuffer' isn't a type. final ui.ImmutableBuffer buffer = ^^^^^^^^^^^^^^^ /C:/Users/Dubai%20Laptops/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:71:18: Error: Undefined name 'ImmutableBuffer'. await ui.ImmutableBuffer.fromUint8List(bytes);
To Reproduce Steps to reproduce the behavior:
Smartphone (please complete the following information):
Duplicate of : https://github.com/ScerIO/packages.flutter/issues/448
Please check the new version on PubDev, it has been updated to 2.6.0 and includes the fix for the DecoderCallback issue.
After upgrading flutter to 3.16.0. the
pdfx
package is giving this error after running the projectTo Reproduce Steps to reproduce the behavior:
Smartphone (please complete the following information):