lottie_fixup 1.0.0
lottie_fixup: ^1.0.0 copied to clipboard
Fixes Lottie/Bodymovin exports that crash or freeze the lottie Flutter package: malformed layers, assets, masks, and shape content, and unexecuted expressions (loops, wiggle, random, cross-layer links).
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'package:lottie_fixup/lottie_fixup.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Lottie.asset(
'assets/raw_export.json',
decoder: fixupLottieDecoder,
),
),
),
);
}
}