mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b9aba4dce2 | |||
2cb1aefb2a |
@ -1,3 +1,6 @@
|
||||
## [0.4.1]
|
||||
- Support color value stored as RGB, not RGBA
|
||||
|
||||
## [0.4.0+1]
|
||||
- Support latest version of the `characters` package
|
||||
|
||||
|
1
example/assets/sticker.json
Normal file
1
example/assets/sticker.json
Normal file
File diff suppressed because one or more lines are too long
@ -84,7 +84,7 @@ packages:
|
||||
name: file
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "5.1.0"
|
||||
version: "5.2.1"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
description: flutter
|
||||
@ -108,7 +108,7 @@ packages:
|
||||
name: golden_toolkit
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.4.0"
|
||||
version: "0.5.1"
|
||||
http:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -143,7 +143,7 @@ packages:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.4.0+1"
|
||||
version: "0.4.1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -171,14 +171,14 @@ packages:
|
||||
name: path_provider
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.10"
|
||||
version: "1.6.11"
|
||||
path_provider_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_linux
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.1+1"
|
||||
version: "0.0.1+2"
|
||||
path_provider_macos:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -267,7 +267,7 @@ packages:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.15"
|
||||
version: "0.2.16"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
BIN
example/test/goldens/all/sticker.png
Normal file
BIN
example/test/goldens/all/sticker.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
@ -9,7 +9,15 @@ Color colorParser(JsonReader reader, {double scale}) {
|
||||
var r = reader.nextDouble();
|
||||
var g = reader.nextDouble();
|
||||
var b = reader.nextDouble();
|
||||
var a = reader.nextDouble();
|
||||
double a;
|
||||
|
||||
// Sometimes sticker can has a color value stored as RGB, not RGBA
|
||||
if (reader.peek() == Token.number) {
|
||||
a = reader.nextDouble();
|
||||
} else {
|
||||
a = 255;
|
||||
}
|
||||
|
||||
if (isArray) {
|
||||
reader.endArray();
|
||||
}
|
||||
|
@ -122,7 +122,6 @@ class LayerParser {
|
||||
if (layerTypeInt < LayerType.unknown.index) {
|
||||
layerType = LayerType.values[layerTypeInt];
|
||||
} else {
|
||||
print('Unknown $layerTypeInt');
|
||||
layerType = LayerType.unknown;
|
||||
}
|
||||
break;
|
||||
|
@ -42,9 +42,9 @@ class PerformanceTracker {
|
||||
|
||||
final sortedRenderTimes = getSortedRenderTimes();
|
||||
|
||||
print('[Lottier] Render Times:');
|
||||
print('[Lottie] Render Times:');
|
||||
for (var layer in sortedRenderTimes) {
|
||||
print('[Lottier]\t\t${layer.first}: ${layer.second}ms');
|
||||
print('[Lottie]\t\t${layer.first}: ${layer.second}ms');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,14 +7,14 @@ packages:
|
||||
name: _fe_analyzer_shared
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "4.0.0"
|
||||
version: "5.0.0"
|
||||
analyzer:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: analyzer
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.39.10"
|
||||
version: "0.39.12"
|
||||
archive:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -253,7 +253,7 @@ packages:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.15"
|
||||
version: "0.2.16"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -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.4.0+1
|
||||
version: 0.4.1
|
||||
homepage: https://github.com/xvrh/lottie-flutter
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user