-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[Flutter 3.0 Web] Image.toByteData
fails with error: Uncaught (in promise) Error: Failed to encode the image into bytes.
#104197
Comments
Hi @javaddict, Thanks for filing the issue. I am able to reproduce the issue on stable and the master channel. flutter 2.10.5
flutter 3.0
Adding a regression label since this works fine on flutter doctor -v (2.10.5)
flutter doctor -v (mac)
|
Image.toByteData
fails with error: Uncaught (in promise) Error: Failed to encode the image into bytes.
Deduplicating into #103803 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
The API toByteData() stop working when upgrading to Flutter 3.0. It happens only on the web platform.
Steps to Reproduce
Please check out this dartpad.
When using the old channel (2.10.5), the DartPad console shows some messages, proving that
toByteData()
is successfully executed. But when switching to the stable channel (3.0.0), nothing is shown. I looked at the console log of the browser and here are the error messages:The text was updated successfully, but these errors were encountered: