Repository navigation
v1.1.0
- Add
errorBuildercallback to provide an alternative widget in case an error occurs during loading.
Lottie.network(
'https://example.does.not.exist/lottie.json',
errorBuilder: (context, exception, stackTrace) {
return const Text('😢');
},
);- Add
onWarningto be notified when a warning occurs during the animation parsing or painting.
Previously the warnings where written in an internallogger.Lottie.asset('animation.json' onWarning: (warning) { _logger.info(warning); }, );
- Various bug fixes