mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Fix onWarning callback (#156)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user