Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type 'DecoderCallback' not found. #460

Open
itb55ru opened this issue Nov 23, 2023 · 2 comments
Open

Type 'DecoderCallback' not found. #460

itb55ru opened this issue Nov 23, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@itb55ru
Copy link

itb55ru commented Nov 23, 2023

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) =>
                                                      ^^^^^^^^^^^^^^^
pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:40:7: Error: Type 'DecoderCallback' not found.
      DecoderCallback decode) async {
      ^^^^^^^^^^^^^^^
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) =>
                                                      ^^^^^^^^^^^^^^^
pdfx-2.5.0/lib/src/viewer/pdf_page_image_provider.dart:40:7: Error: 'DecoderCallback' isn't a type.
      DecoderCallback decode) async {
      ^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

https://api.flutter.dev/flutter/painting/DecoderCallback.html
it has been Deprecated

Flutter 3.16.0 • Dart 3.2.0

@itb55ru itb55ru added the enhancement New feature or request label Nov 23, 2023
@RexIron
Copy link

RexIron commented Nov 23, 2023

Duplicate of : #448

@ManuelRauber
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants