Compare commits

...

1 Commits

Author SHA1 Message Date
bbfe04f00d Remove prints (#129) 2021-02-06 14:42:46 +01:00
4 changed files with 32 additions and 33 deletions

View File

@ -21,7 +21,8 @@ class App extends StatelessWidget {
appBar: AppBar(
title: Text('Lottie Flutter'),
),
body: GridView.builder(
body: Scrollbar(
child: GridView.builder(
itemCount: files.length,
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
@ -51,6 +52,7 @@ class App extends StatelessWidget {
},
),
),
),
);
}
}

View File

@ -129,14 +129,14 @@ packages:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0-nullsafety.0"
version: "1.0.0"
lottie:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.8.0-nullsafety.0"
version: "0.8.0-nullsafety.2"
matcher:
dependency: transitive
description:

View File

@ -381,14 +381,11 @@ class _LottieBuilderState extends State<LottieBuilder> {
void _load() {
var provider = widget.lottie;
_loadingFuture = widget.lottie.load().then((composition) {
print('Loaded');
if (mounted && widget.onLoaded != null && widget.lottie == provider) {
widget.onLoaded!(composition);
}
return composition;
}, onError: (Object e, StackTrace t) {
print('Load error $e $t');
});
}

View File

@ -1,6 +1,6 @@
name: lottie
description: Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
version: 0.8.0-nullsafety.1
version: 0.8.0-nullsafety.2
homepage: https://github.com/xvrh/lottie-flutter
environment: