Skip to content

Conversation

@werainkhatri
Copy link
Member

where first image was synchronously loaded but second isn't.
when first image is precached and then the image is changed to an uncached one, placeholder's opacity animation was never initialized but the code assumed it'll be if the image is not synchronously loaded.
adds regression test for it.

fixes #111011
caused by #94601

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 6, 2022
@werainkhatri werainkhatri force-pushed the fix-fadeinimage-edgecase branch from 7da5c71 to 5b95b91 Compare September 6, 2022 16:22
@werainkhatri werainkhatri force-pushed the fix-fadeinimage-edgecase branch from 5b95b91 to f0af5b0 Compare September 6, 2022 22:27
@werainkhatri werainkhatri force-pushed the fix-fadeinimage-edgecase branch from f0af5b0 to 0c2af87 Compare September 6, 2022 22:39
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some nits

@chunhtai chunhtai requested a review from dnfield September 7, 2022 16:46
@chunhtai
Copy link
Contributor

chunhtai commented Sep 7, 2022

cc @dnfield for secondary review

werainkhatri and others added 2 commits September 8, 2022 07:22
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
@werainkhatri werainkhatri added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 8, 2022
@auto-submit auto-submit bot merged commit 165cb0b into flutter:master Sep 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Sep 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 8, 2022
@werainkhatri werainkhatri deleted the fix-fadeinimage-edgecase branch September 11, 2022 00:53
@lotusprey
Copy link

Sorry, but is it known when this will get released on stable? On Flutter 3.3.3 this is still a problem and I was wondering how to work around that.

@cristian1980
Copy link

Can we have this in stable please? We had to downgrade to 3.0.0 to avoid this issue.

@chunhtai
Copy link
Contributor

chunhtai commented Oct 6, 2022

requesting cp. See the original issue

chunhtai pushed a commit to chunhtai/flutter that referenced this pull request Oct 6, 2022
godofredoc pushed a commit that referenced this pull request Oct 18, 2022
Co-authored-by: Viren Khatri <44755140+werainkhatri@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FadeInImage throws null pointer exception (Flutter 3.3)

5 participants