mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Support loading a zip file (#5)
This commit is contained in:
@ -4,7 +4,7 @@ import 'package:lottie/lottie.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
var composition = LottieComposition.fromByteData(
|
||||
var composition = await LottieComposition.fromByteData(
|
||||
await rootBundle.load('assets/lf20_w2Afea.json'));
|
||||
|
||||
runApp(App(composition: composition));
|
||||
|
Reference in New Issue
Block a user