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 | |
---|---|---|---|
cd4cc910c4 | |||
92502f1358 |
@ -1,3 +1,5 @@
|
|||||||
|
## 2.3.1
|
||||||
|
- Fix an assertion for null `ShapeTrimPathType.type`.
|
||||||
|
|
||||||
## 2.3.0
|
## 2.3.0
|
||||||
- Fixed a failed assertion (`dirty: is not true`) when calling `setState` inside `onLoaded` callback.
|
- Fixed a failed assertion (`dirty: is not true`) when calling `setState` inside `onLoaded` callback.
|
||||||
|
243
example/assets/issue270.json
Normal file
243
example/assets/issue270.json
Normal file
@ -0,0 +1,243 @@
|
|||||||
|
{
|
||||||
|
"layers": [
|
||||||
|
{
|
||||||
|
"ddd": 0,
|
||||||
|
"ty": 4,
|
||||||
|
"ind": 0,
|
||||||
|
"sr": 1,
|
||||||
|
"ip": 0,
|
||||||
|
"op": 180,
|
||||||
|
"st": 0,
|
||||||
|
"ks": {
|
||||||
|
"a": {
|
||||||
|
"k": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"p": {
|
||||||
|
"k": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"s": {
|
||||||
|
"k": [
|
||||||
|
100,
|
||||||
|
100
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"r": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"o": {
|
||||||
|
"k": 100,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"sk": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"sa": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ao": 0,
|
||||||
|
"bm": 0,
|
||||||
|
"shapes": [
|
||||||
|
{
|
||||||
|
"ty": "gr",
|
||||||
|
"it": [
|
||||||
|
{
|
||||||
|
"ty": "sh",
|
||||||
|
"d": 1,
|
||||||
|
"ks": {
|
||||||
|
"k": {
|
||||||
|
"c": false,
|
||||||
|
"i": [
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
[
|
||||||
|
32,
|
||||||
|
-32
|
||||||
|
],
|
||||||
|
[
|
||||||
|
-64,
|
||||||
|
-64
|
||||||
|
],
|
||||||
|
[
|
||||||
|
64,
|
||||||
|
64
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"o": [
|
||||||
|
[
|
||||||
|
64,
|
||||||
|
64
|
||||||
|
],
|
||||||
|
[
|
||||||
|
-32,
|
||||||
|
32
|
||||||
|
],
|
||||||
|
[
|
||||||
|
-64,
|
||||||
|
64
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"v": [
|
||||||
|
[
|
||||||
|
256,
|
||||||
|
128
|
||||||
|
],
|
||||||
|
[
|
||||||
|
256,
|
||||||
|
376
|
||||||
|
],
|
||||||
|
[
|
||||||
|
256,
|
||||||
|
256
|
||||||
|
],
|
||||||
|
[
|
||||||
|
128,
|
||||||
|
376
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"a": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ty": "st",
|
||||||
|
"lc": 2,
|
||||||
|
"lj": 2,
|
||||||
|
"ml": 0,
|
||||||
|
"o": {
|
||||||
|
"k": 100,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"w": {
|
||||||
|
"k": 5,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"c": {
|
||||||
|
"k": [
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ty": "tr",
|
||||||
|
"a": {
|
||||||
|
"k": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"p": {
|
||||||
|
"k": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"s": {
|
||||||
|
"k": [
|
||||||
|
100,
|
||||||
|
100
|
||||||
|
],
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"r": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"o": {
|
||||||
|
"k": 100,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"sk": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"sa": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ty": "tm",
|
||||||
|
"s": {
|
||||||
|
"k": 0,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"e": {
|
||||||
|
"k": 50,
|
||||||
|
"a": 0
|
||||||
|
},
|
||||||
|
"o": {
|
||||||
|
"a": 1,
|
||||||
|
"k": [
|
||||||
|
{
|
||||||
|
"t": 0,
|
||||||
|
"i": {
|
||||||
|
"x": [
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"y": [
|
||||||
|
1
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"o": {
|
||||||
|
"x": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"y": [
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"s": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"e": [
|
||||||
|
360
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": 180,
|
||||||
|
"s": [
|
||||||
|
360
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"v": "5.5.2",
|
||||||
|
"fr": 60,
|
||||||
|
"ip": 0,
|
||||||
|
"op": 180,
|
||||||
|
"w": 968,
|
||||||
|
"h": 1090,
|
||||||
|
"ddd": 0,
|
||||||
|
"assets": []
|
||||||
|
}
|
@ -169,7 +169,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.3.0"
|
version: "2.3.1"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -43,7 +43,7 @@ class ShapeTrimPathParser {
|
|||||||
|
|
||||||
return ShapeTrimPath(
|
return ShapeTrimPath(
|
||||||
name: name,
|
name: name,
|
||||||
type: type!,
|
type: type ?? ShapeTrimPathType.simultaneously,
|
||||||
start: start!,
|
start: start!,
|
||||||
end: end!,
|
end: end!,
|
||||||
offset: offset!,
|
offset: offset!,
|
||||||
|
18
pubspec.lock
18
pubspec.lock
@ -5,18 +5,18 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: _fe_analyzer_shared
|
name: _fe_analyzer_shared
|
||||||
sha256: e440ac42679dfc04bbbefb58ed225c994bc7e07fccc8a68ec7d3631a127e5da9
|
sha256: a36ec4843dc30ea6bf652bf25e3448db6c5e8bcf4aa55f063a5d1dad216d8214
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "54.0.0"
|
version: "58.0.0"
|
||||||
analyzer:
|
analyzer:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: analyzer
|
name: analyzer
|
||||||
sha256: "2c2e3721ee9fb36de92faa060f3480c81b23e904352b087e5c64224b1a044427"
|
sha256: cc4242565347e98424ce9945c819c192ec0838cb9d1f6aa4a97cc96becbc5b27
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.6.0"
|
version: "5.10.0"
|
||||||
archive:
|
archive:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -93,10 +93,10 @@ packages:
|
|||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: dart_style
|
name: dart_style
|
||||||
sha256: "7a03456c3490394c8e7665890333e91ae8a49be43542b616e414449ac358acd4"
|
sha256: "6d691edde054969f0e0f26abb1b30834b5138b963793e56f69d3a9a4435e6352"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.4"
|
version: "2.3.0"
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -199,10 +199,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: pointycastle
|
name: pointycastle
|
||||||
sha256: db7306cf0249f838d1a24af52b5a5887c5bf7f31d8bb4e827d071dc0939ad346
|
sha256: c3120a968135aead39699267f4c74bc9a08e4e909e86bc1b0af5bfd78691123c
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.6.2"
|
version: "3.7.2"
|
||||||
pub_semver:
|
pub_semver:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -297,5 +297,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.1"
|
version: "3.1.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.18.0 <3.0.0"
|
dart: ">=2.19.0 <3.0.0"
|
||||||
flutter: ">=3.3.0"
|
flutter: ">=3.3.0"
|
||||||
|
@ -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: 2.3.0
|
version: 2.3.1
|
||||||
repository: https://github.com/xvrh/lottie-flutter
|
repository: https://github.com/xvrh/lottie-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
BIN
test/goldens/all/issue270.png
Normal file
BIN
test/goldens/all/issue270.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
Reference in New Issue
Block a user