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 & Firebase 💙💛

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

Recommended from Medium

Load Image Faster Than Ever in Android

How to open whatsapp in android programmatically | Whatsapp integration in android

Android Enable Developer Options

Dagger/Hilt vs Koin for Jetpack Compose Apps

Now in Android #45

Google Announced Stable Version of Jetpack Compose

My Failed Android UI Test Automation Experiments

Auto-initialize your android library

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 & Firebase 💙💛

More from Medium

Flutter : Widget and its lifecycle

Before start with Flutter — Flutter Programming — Part 1

Flutter — Universal Drawer

Why Flutter is The Best Technology For Mobile App Development