Support loading a zip file (#5)

This commit is contained in:
Xavier H
2020-02-02 22:12:04 +01:00
committed by GitHub
parent 7cc0bcf5b3
commit be0a3bbdad
22 changed files with 243 additions and 73 deletions

View File

@ -16,6 +16,9 @@ class MyApp extends StatelessWidget {
// Load a Lottie file from a remote url
Lottie.network(
'https://raw.githubusercontent.com/xvrh/lottie-flutter/master/example/assets/Mobilo/A.json'),
// Load an animation and its images from a zip file
Lottie.asset('assets/lottiesfiles/angel.zip'),
],
),
),