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

[example][RgbaImage] Avoid use DecorderCallback which is removed after Flutter SDK 3.16 #1452

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

littleGnAl
Copy link
Contributor

@littleGnAl littleGnAl commented Nov 28, 2023

The DecorderCallback was deprecated after v2.13.0-1.0.pre, and removed after 3.16.x

@Deprecated(
  'Use ImageDecoderCallback with ImageProvider.loadImage instead. '
  'This feature was deprecated after v2.13.0-1.0.pre.',
)
typedef DecoderCallback = Future<ui.Codec> Function(Uint8List buffer, {int? cacheWidth, int? cacheHeight, bool allowUpscaling});

But we need to compatible with the Flutter SDK 2.10.x, so we need to avoid directly using the ImageProvider

@littleGnAl littleGnAl merged commit ddfd508 into main Nov 28, 2023
34 checks passed
@littleGnAl littleGnAl deleted the littlegnal/remove-decode-callback branch November 28, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant