Fix onWarning callback (#156)

This commit is contained in:
Xavier H
2021-07-08 21:58:01 +02:00
committed by GitHub
parent cb929e791d
commit a52977f2b3
5 changed files with 16 additions and 9 deletions

View File

@ -42,7 +42,7 @@ class App extends StatelessWidget {
child: _Item(
child: Lottie.asset(
assetName,
onWarning: _logger.info,
onWarning: (w) => _logger.info('$assetName - $w'),
frameBuilder: (context, child, composition) {
return AnimatedOpacity(
opacity: composition == null ? 0 : 1,