You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using Lottie.asset in Flutter with .lottie/.dotlottie files. I want the animation to not start automatically on first load.
Here’s my current code:
If I set animate: isMerging.value, then when isMerging is false, the animation stops immediately and doesn’t finish the current loop. I don’t like this “jumping stop” behavior.
If I leave animate alone (default true), then the animation auto-plays on first load, which I also don’t want.
So I’m looking for a way to:
Prevent auto-play on the first widget load.
Keep full loops intact when I pause or toggle isMerging.
Basically, I want controlled start/pause behavior without the animation being reset or cut mid-play.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using Lottie.asset in Flutter with .lottie/.dotlottie files. I want the animation to not start automatically on first load.
Here’s my current code:
The problem is:
animate: isMerging.value, then when isMerging is false, the animation stops immediately and doesn’t finish the current loop. I don’t like this “jumping stop” behavior.So I’m looking for a way to:
Basically, I want controlled start/pause behavior without the animation being reset or cut mid-play.
Beta Was this translation helpful? Give feedback.
All reactions