Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Stop the animation of a GIF when offscreen. #168051

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

Open
haodong404 opened this issue Apr 30, 2025 · 1 comment
Open

Stop the animation of a GIF when offscreen. #168051

haodong404 opened this issue Apr 30, 2025 · 1 comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@haodong404
Copy link

Use case

I hava a list that contains images, some of them are GIFs, and the screen always refreshing if a GIF is loaded but it's not visible.

Proposal

So I'm wondering is it possible to stop playing a GIF when it's invisible.
And I've tried to wrap a Image with VisibilityDetector, but it will cause rebuild many times.
By the way, the VisibilityDetector is limited, it cannot detect Opacity widget. So it's awesome if there is an alternative in Flutter framwork.

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Apr 30, 2025
@darshankawar
Copy link
Member

@haodong404
See if this helps further in your case.
Also, good to raise this in support channels like Stackoverflow to get alternatives or existing solutions to achieve your case.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

2 participants