-
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
Picture.toImage breaks backwards compatibility #26655
Comments
I have to assume that this fix wont be rolled back at this point? |
This is an intentional change to the API. Fixing #23621 required making this method asynchronous |
From what I have seen the Flutter team avoids any breaking change, but in this case it was necessary to make a broken feature work. I don't think there is anything actionable left and therefore closing. |
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 |
On
master
,Picture.toImage
indart:ui
now returns aFuture
(so is async) where it used to be sync. This creates an issue with libraries that use this call (like https://github.com/lukef/qr.flutter).I'm going to assume that there are going to be some assurances around backwards compatibility moving forward? If not, we will need a way to isolate platform version specific code so that developers (like me) don't have to maintain a bunch of different library versions whenever the underlying platform changes.
For now, I can bump the version and direct developers to use a lower version for 1.0 and a higher version for master (and beyond) however, should we trust that decisions like this one that are made (and pushed) to master are going to be in constant flux? i.e: tell developers to not use master?
Also, there is no mechanism to peg the library to specific Flutter versions (right?). So it's still highly possible that developers will use the wrong version regardless.
The text was updated successfully, but these errors were encountered: