How to use Lottie Animation in Flutter 💖

Lottie.asset('assets/LottieLogo1.json');
class LottieAnimationExample extends StatefulWidget{
@override
LottieAnimationExampleState createState() => LottieAnimationExampleState();
}
class LottieAnimationExampleState extends State<LottieAnimationExample> with TickerProviderStateMixin{
}
class LottieAnimationExample extends StatefulWidget{
@override
LottieAnimationExampleState createState() => LottieAnimationExampleState();
}
class LottieAnimationExampleState extends State<LottieAnimationExample> with TickerProviderStateMixin{

AnimationController _lottieAnimationController;
}
@override  
void initState(){
_lottieAnimationController = AnimationController(vsync: this);
}

Don’t forget to connect with me on:

Don’t stop, until you are breathing!💙
- Abhishek Doshi

--

--

--

Google Developer Expert — Dart & Flutter 💙

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Integrate Panorama Kit (Kotlin)

Android 11 : Top 10 Amazing features you need to know!

Let your Android app navigate on a WiFi w/o internet access when mobile data is on

Re-Architecting the Flurry Mobile App for Android — Part 1

Jetpack WindowManager Updates

Learn android development — part 1

Tube Evader is a New Ultra-Fun Endless Android Space Racer

Android ListView VS. RecyclerView

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek Doshi

Abhishek Doshi

Google Developer Expert — Dart & Flutter 💙

More from Medium

Return screen results lazy without WillPopScope

How to use Flutter Firebase Authentication

How to Disable the Default Widget Splash Effect in Flutter?

Create Your First Flutter App