Decrease lottie size dynamically in flutter

Posted on 08 Jan, 2022

SizedBox(
   height: <height you want for lottie>,
   child: OverflowBox(
    maxHeight: <height greater than you set for lottie>,
    child: Lottie.asset('animation.json'),
  ),
),

Last updated