mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Compare commits
1 Commits
v0.8.0-nul
...
v0.8.0-nul
Author | SHA1 | Date | |
---|---|---|---|
bbfe04f00d |
@ -21,7 +21,8 @@ class App extends StatelessWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text('Lottie Flutter'),
|
title: Text('Lottie Flutter'),
|
||||||
),
|
),
|
||||||
body: GridView.builder(
|
body: Scrollbar(
|
||||||
|
child: GridView.builder(
|
||||||
itemCount: files.length,
|
itemCount: files.length,
|
||||||
gridDelegate:
|
gridDelegate:
|
||||||
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
|
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
|
||||||
@ -51,6 +52,7 @@ class App extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -129,14 +129,14 @@ packages:
|
|||||||
name: logging
|
name: logging
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.0-nullsafety.0"
|
version: "1.0.0"
|
||||||
lottie:
|
lottie:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.8.0-nullsafety.0"
|
version: "0.8.0-nullsafety.2"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -381,14 +381,11 @@ class _LottieBuilderState extends State<LottieBuilder> {
|
|||||||
void _load() {
|
void _load() {
|
||||||
var provider = widget.lottie;
|
var provider = widget.lottie;
|
||||||
_loadingFuture = widget.lottie.load().then((composition) {
|
_loadingFuture = widget.lottie.load().then((composition) {
|
||||||
print('Loaded');
|
|
||||||
if (mounted && widget.onLoaded != null && widget.lottie == provider) {
|
if (mounted && widget.onLoaded != null && widget.lottie == provider) {
|
||||||
widget.onLoaded!(composition);
|
widget.onLoaded!(composition);
|
||||||
}
|
}
|
||||||
|
|
||||||
return composition;
|
return composition;
|
||||||
}, onError: (Object e, StackTrace t) {
|
|
||||||
print('Load error $e $t');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: lottie
|
name: lottie
|
||||||
description: Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
|
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
|
homepage: https://github.com/xvrh/lottie-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Reference in New Issue
Block a user