Skip to content
New issue

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

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

Already on GitHub? # to your account

Deprecated API usage: The webOnlyInstantiateImageCodecFromUrl API is deprecated and will be removed in a future release. Please use createImageCodecFromUrl from dart:ui_web instead. #906

Closed
1 task done
alirizadagli opened this issue Dec 23, 2023 · 5 comments

Comments

@alirizadagli
Copy link

alirizadagli commented Dec 23, 2023

🐛 Bug Report

While debugging on Chrome, I get a deprecated warning: The webOnlyInstantiateImageCodecFromUrl API is deprecated and will be removed in a future release. Please use 'createImageCodecFromUrl' from 'dart:ui_web' instead.

Version: 3.3.0

Platform:

  • :web: Chrome
@mvanbeusekom
Copy link
Member

Resolved in version 1.2.0 of the cached_network_image_web packages.

@Sun3
Copy link

Sun3 commented May 2, 2024

I am still getting the same error with cached_network_image: ^3.3.1

@mvanbeusekom
Copy link
Member

Please check your pubspec.lock file for the cache_network_image_web package. It should be version 1.2.0.

If it is not run flutter pub upgrade. Resolve any problems if Flutter reports upgrade is not possible.

@Sun3
Copy link

Sun3 commented May 2, 2024

That was it... thanks.

@anmol-me
Copy link

anmol-me commented Aug 9, 2024

The error gets fixed with cached_network_image v3.4.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants