Home > Software design >  How to stop repeating lotti animation in flutter
How to stop repeating lotti animation in flutter

Time:03-16

here I'm trying to create a order completion popup screen. but the [done] animation repeating all the time, i want to stop that after completing the complete frame of the animation. here is my screen

enter image description here

and how can i achieve this, if my question is not clear please comment

CodePudding user response:

LottieBuilder.asset(
            'assets/animations/gpay_check.json',
            fit: BoxFit.contain,
            repeat: false,              // add this line
            controller: lottieController,
),
  • Related