flet-lottie 0.2.0.dev48__tar.gz → 0.2.0.dev55__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flet-lottie might be problematic. Click here for more details.
- {flet_lottie-0.2.0.dev48/src/flet_lottie.egg-info → flet_lottie-0.2.0.dev55}/PKG-INFO +1 -1
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/pyproject.toml +36 -14
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie/__init__.py +2 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie/lottie.py +22 -19
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55/src/flet_lottie.egg-info}/PKG-INFO +1 -1
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/pubspec.lock +5 -5
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/pubspec.yaml +1 -1
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/LICENSE +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/README.md +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/setup.cfg +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie.egg-info/SOURCES.txt +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie.egg-info/dependency_links.txt +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie.egg-info/requires.txt +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie.egg-info/top_level.txt +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/CHANGELOG.md +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/LICENSE +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/README.md +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/analysis_options.yaml +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/flet_lottie.dart +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/src/extension.dart +0 -0
- {flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/src/lottie.dart +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flet-lottie"
|
|
3
|
-
version = "0.2.0.
|
|
3
|
+
version = "0.2.0.dev55"
|
|
4
4
|
description = "Display Lottie animations in Flet apps."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
|
|
@@ -20,22 +20,43 @@ Issues = "https://github.com/flet-dev/flet-lottie/issues"
|
|
|
20
20
|
"flutter.flet_lottie" = ["**/*"]
|
|
21
21
|
|
|
22
22
|
[dependency-groups]
|
|
23
|
+
test = [
|
|
24
|
+
"pytest >=7.2.0",
|
|
25
|
+
]
|
|
26
|
+
lint = [
|
|
27
|
+
"ruff >=0.11.7",
|
|
28
|
+
]
|
|
23
29
|
dev = [
|
|
24
|
-
"pre-commit>=4.2.0",
|
|
25
|
-
|
|
30
|
+
"pre-commit >=4.2.0",
|
|
31
|
+
{ include-group = 'lint' },
|
|
32
|
+
{ include-group = 'test' },
|
|
33
|
+
]
|
|
34
|
+
docs-coverage = [
|
|
35
|
+
"docstr-coverage >=2.3.2",
|
|
26
36
|
]
|
|
27
37
|
docs = [
|
|
28
|
-
"mkdocs",
|
|
29
|
-
"mkdocs-material",
|
|
30
|
-
"mkdocstrings
|
|
31
|
-
"mkdocstrings-python-xref",
|
|
32
|
-
"mike",
|
|
33
|
-
"markdown>=3.6",
|
|
34
|
-
"pymdown-extensions",
|
|
35
|
-
"mkdocs-
|
|
36
|
-
"mkdocs-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"mkdocs >=1.6.1",
|
|
39
|
+
"mkdocs-material >=9.6.15",
|
|
40
|
+
"mkdocstrings-python >=1.16.12",
|
|
41
|
+
"mkdocstrings-python-xref >=1.16.3",
|
|
42
|
+
"mike >=2.1.3",
|
|
43
|
+
"markdown >=3.6",
|
|
44
|
+
"pymdown-extensions >=10.16",
|
|
45
|
+
"mkdocs-exclude >=1.0.2",
|
|
46
|
+
"mkdocs-glightbox >=0.4.0",
|
|
47
|
+
"mkdocs-open-in-new-tab >=1.0.8",
|
|
48
|
+
"mkdocs-section-index >=0.3.10",
|
|
49
|
+
"griffe-modernized-annotations >=1.0.8",
|
|
50
|
+
"griffe-warnings-deprecated >=1.1.0",
|
|
51
|
+
"pygments >=2.16",
|
|
52
|
+
"markdown-exec[ansi] >=1.11.0",
|
|
53
|
+
"pydocstyle >=6.3.0",
|
|
54
|
+
"linkcheckmd >=1.4.0",
|
|
55
|
+
{ include-group = 'docs-coverage' },
|
|
56
|
+
]
|
|
57
|
+
all = [
|
|
58
|
+
{ include-group = 'dev' },
|
|
59
|
+
{ include-group = 'docs' },
|
|
39
60
|
]
|
|
40
61
|
|
|
41
62
|
[build-system]
|
|
@@ -64,6 +85,7 @@ select = [
|
|
|
64
85
|
"I"
|
|
65
86
|
]
|
|
66
87
|
preview = true
|
|
88
|
+
pydocstyle = { convention = 'google' }
|
|
67
89
|
|
|
68
90
|
[tool.ruff.format]
|
|
69
91
|
quote-style = "double"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import
|
|
1
|
+
from typing import Optional
|
|
2
2
|
|
|
3
3
|
import flet as ft
|
|
4
4
|
|
|
@@ -17,36 +17,37 @@ class Lottie(ft.ConstrainedControl):
|
|
|
17
17
|
|
|
18
18
|
src: Optional[str] = None
|
|
19
19
|
"""
|
|
20
|
-
The source of the Lottie file.
|
|
21
|
-
|
|
20
|
+
The source of the Lottie file.
|
|
21
|
+
|
|
22
22
|
Can be a URL or a local [asset file](https://flet.dev/docs/cookbook/assets).
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
Note:
|
|
25
|
-
If both `src` and [`src_base64`][..] are provided,
|
|
25
|
+
If both `src` and [`src_base64`][..] are provided,
|
|
26
26
|
`src_base64` will be prioritized/used.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
src_base64: Optional[str] = None
|
|
30
30
|
"""
|
|
31
|
-
The base64 encoded string of the Lottie file.
|
|
32
|
-
|
|
31
|
+
The base64 encoded string of the Lottie file.
|
|
32
|
+
|
|
33
33
|
Note:
|
|
34
|
-
If both `src_base64` and [`src`][..] are provided,
|
|
34
|
+
If both `src_base64` and [`src`][..] are provided,
|
|
35
35
|
`src_base64` will be prioritized/used.
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
repeat: bool = True
|
|
39
39
|
"""
|
|
40
|
-
Whether the animation should repeat in a loop.
|
|
41
|
-
|
|
40
|
+
Whether the animation should repeat in a loop.
|
|
41
|
+
|
|
42
42
|
Note:
|
|
43
43
|
Has no effect if [`animate`][..] is `False`.
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
46
|
reverse: bool = False
|
|
47
47
|
"""
|
|
48
|
-
Whether the animation should be played in reverse
|
|
49
|
-
|
|
48
|
+
Whether the animation should be played in reverse
|
|
49
|
+
(from start to end and then continuously from end to start).
|
|
50
|
+
|
|
50
51
|
Note:
|
|
51
52
|
Has no effect if [`animate`][..] or [`repeat`][..] is `False`.
|
|
52
53
|
"""
|
|
@@ -78,31 +79,33 @@ class Lottie(ft.ConstrainedControl):
|
|
|
78
79
|
|
|
79
80
|
fit: Optional[ft.BoxFit] = None
|
|
80
81
|
"""
|
|
81
|
-
Defines how to inscribe the Lottie composition
|
|
82
|
+
Defines how to inscribe the Lottie composition
|
|
82
83
|
into the space allocated during layout.
|
|
83
84
|
"""
|
|
84
85
|
|
|
85
|
-
headers: Optional[
|
|
86
|
+
headers: Optional[dict[str, str]] = None
|
|
86
87
|
"""
|
|
87
88
|
Headers for network requests.
|
|
88
89
|
"""
|
|
89
90
|
|
|
90
91
|
error_content: Optional[ft.Control] = None
|
|
91
92
|
"""
|
|
92
|
-
A control to display when an error occurs
|
|
93
|
+
A control to display when an error occurs
|
|
93
94
|
while loading the Lottie animation.
|
|
94
|
-
|
|
95
|
+
|
|
95
96
|
For more information on the error, see [`on_error`][..].
|
|
96
97
|
"""
|
|
97
98
|
|
|
98
99
|
on_error: Optional[ft.ControlEventHandler["Lottie"]] = None
|
|
99
100
|
"""
|
|
100
101
|
Fires when an error occurs while loading the Lottie animation.
|
|
101
|
-
|
|
102
|
-
The `data` property of the event handler argument
|
|
102
|
+
|
|
103
|
+
The [`data`][flet.Event.data] property of the event handler argument
|
|
103
104
|
contains information on the error.
|
|
104
105
|
"""
|
|
105
106
|
|
|
106
107
|
def before_update(self):
|
|
107
108
|
super().before_update()
|
|
108
|
-
assert self.src or self.src_base64,
|
|
109
|
+
assert self.src or self.src_base64, (
|
|
110
|
+
"at least one of src and src_base64 must be provided"
|
|
111
|
+
)
|
|
@@ -134,7 +134,7 @@ packages:
|
|
|
134
134
|
description:
|
|
135
135
|
path: "packages/flet"
|
|
136
136
|
ref: main
|
|
137
|
-
resolved-ref:
|
|
137
|
+
resolved-ref: cf8823c5d766ea7866480986aa3ee871f4091e78
|
|
138
138
|
url: "https://github.com/flet-dev/flet.git"
|
|
139
139
|
source: git
|
|
140
140
|
version: "0.70.0"
|
|
@@ -155,10 +155,10 @@ packages:
|
|
|
155
155
|
dependency: "direct dev"
|
|
156
156
|
description:
|
|
157
157
|
name: flutter_lints
|
|
158
|
-
sha256:
|
|
158
|
+
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
|
|
159
159
|
url: "https://pub.dev"
|
|
160
160
|
source: hosted
|
|
161
|
-
version: "
|
|
161
|
+
version: "3.0.2"
|
|
162
162
|
flutter_localizations:
|
|
163
163
|
dependency: transitive
|
|
164
164
|
description: flutter
|
|
@@ -266,10 +266,10 @@ packages:
|
|
|
266
266
|
dependency: transitive
|
|
267
267
|
description:
|
|
268
268
|
name: lints
|
|
269
|
-
sha256:
|
|
269
|
+
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
|
|
270
270
|
url: "https://pub.dev"
|
|
271
271
|
source: hosted
|
|
272
|
-
version: "
|
|
272
|
+
version: "3.0.0"
|
|
273
273
|
logging:
|
|
274
274
|
dependency: transitive
|
|
275
275
|
description:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flet_lottie.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/analysis_options.yaml
RENAMED
|
File without changes
|
{flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/flet_lottie.dart
RENAMED
|
File without changes
|
{flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/src/extension.dart
RENAMED
|
File without changes
|
{flet_lottie-0.2.0.dev48 → flet_lottie-0.2.0.dev55}/src/flutter/flet_lottie/lib/src/lottie.dart
RENAMED
|
File without changes
|