-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update FadeInImage to use new Image APIs #33370
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
Conversation
|
@Hixie I significantly re-worked this class. In the process, I got rid of two instance variables:
PTAL. |
This updates FadeInImage to use the new Image.frameBuilder API (added in #33369), to greatly simplify the implementation of FadeInImage. This also removes the FadeInImage.placeholderSemanticLabel property. This property was added in #28799 for the sake of completeness (the bug it fixed was the lack of any semantic label support in FadeInImage), but a placeholder is a transient visual artifact, not something that affects the underlying semantic meaning of the image.
|
Ok, this has been rebased off of 6884146. I've updated the PR description to account for the breaking change. PTAL. |
HansMuller
left a comment
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.
I only reviewed _AnimatedFadeOutFadeIn; looks pretty good to me.
|
FYI, waiting for LGTM on this. I also submitted #33674 for review to address the documentation in |
goderbauer
left a comment
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.
LGTM
This is a follow-on to #33370 based on review comments therein.
Description
This updates
FadeInImageto use the newImage.frameBuilderAPI (added in #33369), to greatly
simplify the implementation of
FadeInImage.This also removes the
FadeInImage.placeholderSemanticLabelproperty.This property was added in #28799 for the sake of completeness (the bug
it fixed was the lack of any semantic label support in FadeInImage), but a
placeholder is a transient visual artifact, not something that affects the
underlying semantic meaning of the image.
Related Issues
FadeInImage.placeholderSemanticLabelproperty #33480Tests
I added full test coverage of the two new properties (verified in merged
lcov.info). Due to the fact that the implementation ofFadeInImagewas completely rewritten, I replaced the existing tests with new tests that verify thatFadeInImage:Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?