-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
DecoderBufferCallback is deprecated and DecoderCallback removed #861
Conversation
@Carapacik Can you please remove `DecoderBuffer' instead of deprecating it in another branch, since its removed on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the thorough cleanup of all the code. Looks pretty good in general, but I also have to give it a good test to see if nothing breaks, because it is a big PR. I already added some comments and questions for potential improvements. I'll do my best to merge this PR quick. I've been on holiday for a couple of weeks, so I'm pickup up my slack.
cached_network_image/example/macos/Runner/DebugProfile.entitlements
Outdated
Show resolved
Hide resolved
cached_network_image/lib/src/image_provider/cached_network_image_provider.dart
Outdated
Show resolved
Hide resolved
cached_network_image_platform_interface/lib/cached_network_image_platform_interface.dart
Outdated
Show resolved
Hide resolved
Codecov ReportPatch coverage is π’ Thoughts on this report? Let us know!. |
I think there is a problem with octo_image dependency, which has blurhash_flutter dependency which still has that DecoderCallback Here is the bug:
And this is how I am using CachedNetworkImage in pubspec.yaml
Flutter SDK 3.15 beta |
Thanks for the notice. I'll remove the dependency on blurhash from octo_image and write in the docs how to add it manually if you need it. |
Thanks a lot for all the effort! |
@renefloor I think also need to update
|
Yes, I'll release octo_image first (probably today) and directly after cached_network_image with updated pubspec |
Released as 3.3.0: https://pub.dev/packages/cached_network_image/changelog |
β¨ What kind of change does this PR introduce? (Bug fix)
Add loadImage instead loadBuffer deprecation
π₯ Does this PR introduce a breaking change? Yes
Merge this PR after this
#845
π Links to relevant issues/docs
(Flutter Docs)
https://api.flutter.dev/flutter/painting/DecoderBufferCallback.html
https://api.flutter.dev/flutter/painting/ImageDecoderCallback.html
PR(Remove ImageProvider.load, DecoderCallback and PaintingBinding.instantiateImageCodec)
flutter/flutter#132679
flutter/flutter#133171
Checklist before submitting