2020-10-21 · Adding the Lottie dependency: Open the pubspec.yaml file and add the dependency as shown below:. Create the dart file and import the dependency: To import the dependency to the lottie_page.dart file, use the below:

5029

LottieFiles maintains the web component that enables using our custom web component to easily add a Lottie player anywhere on your webpage. To add the web component, you need to grab the script URL to the player and add it to the section of your page HTML (or anywhere on the page).