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(
|
||||
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 {
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user