Skip to content

v1.1.0

Choose a tag to compare

@xvrh xvrh released this 08 Jul 20:10
· 120 commits to master since this release
  • Add errorBuilder callback 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 onWarning to be notified when a warning occurs during the animation parsing or painting.
    Previously the warnings where written in an internal logger.
    Lottie.asset('animation.json'
      onWarning: (warning) {
        _logger.info(warning);
      },
    );
  • Various bug fixes