Restarting WebP animation to first frame

152 views
Skip to first unread message

Gary Anderson

unread,
Sep 18, 2018, 8:40:40 PM9/18/18
to Flutter Dev
Is there a way to force a restart on an WebP animation?

After flutter engine added WebP support (https://github.com/flutter/flutter/issues/9857) I am able to loop a single animation.webp file successfully forever.

I want to restart the animation.webp animation for every onTouch() event of a widget. 

I have a custom Visibility wrapper widget that properly continues the animation from the point it is hidden and becomes visible again,  but the looping and timing does not work out perfectly all the time.

Have a feeling I may need to modify the flutter engine to support this, but thought I'd check here first in parallel. Thanks!
Reply all
Reply to author
Forward
0 new messages