flet-lottie 0.2.0.dev48__py3-none-any.whl → 0.2.0.dev60__py3-none-any.whl
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/__init__.py +3 -1
- flet_lottie/lottie.py +22 -19
- {flet_lottie-0.2.0.dev48.dist-info → flet_lottie-0.2.0.dev60.dist-info}/METADATA +6 -4
- {flet_lottie-0.2.0.dev48.dist-info → flet_lottie-0.2.0.dev60.dist-info}/RECORD +9 -9
- flutter/flet_lottie/pubspec.lock +52 -36
- flutter/flet_lottie/pubspec.yaml +1 -1
- {flet_lottie-0.2.0.dev48.dist-info → flet_lottie-0.2.0.dev60.dist-info}/WHEEL +0 -0
- {flet_lottie-0.2.0.dev48.dist-info → flet_lottie-0.2.0.dev60.dist-info}/licenses/LICENSE +0 -0
- {flet_lottie-0.2.0.dev48.dist-info → flet_lottie-0.2.0.dev60.dist-info}/top_level.txt +0 -0
flet_lottie/__init__.py
CHANGED
flet_lottie/lottie.py
CHANGED
|
@@ -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
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-lottie
|
|
3
|
-
Version: 0.2.0.
|
|
3
|
+
Version: 0.2.0.dev60
|
|
4
4
|
Summary: Display Lottie animations in Flet apps.
|
|
5
5
|
Author-email: Flet contributors <hello@flet.dev>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -41,7 +41,9 @@ This package supports the following platforms:
|
|
|
41
41
|
| Android | ✅ |
|
|
42
42
|
| Web | ✅ |
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
### Installation
|
|
45
47
|
|
|
46
48
|
To install the `flet-lottie` package and add it to your project dependencies:
|
|
47
49
|
|
|
@@ -61,6 +63,6 @@ To install the `flet-lottie` package and add it to your project dependencies:
|
|
|
61
63
|
poetry add flet-lottie
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
### Examples
|
|
65
67
|
|
|
66
|
-
For examples, see [
|
|
68
|
+
For examples, see [these](./examples).
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
flet_lottie/__init__.py,sha256=
|
|
2
|
-
flet_lottie/lottie.py,sha256=
|
|
3
|
-
flet_lottie-0.2.0.
|
|
1
|
+
flet_lottie/__init__.py,sha256=SpVjw6l9hszMJP2j7y-p3qScJDYHRiDXOWS1nMjG29c,60
|
|
2
|
+
flet_lottie/lottie.py,sha256=wzzabD94fkL271RfCiu-WRX2pIHaydLtm32-EMeSXeA,2623
|
|
3
|
+
flet_lottie-0.2.0.dev60.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
4
4
|
flutter/flet_lottie/CHANGELOG.md,sha256=-7pCYFGML9PyWTbSp2ZOQ6MM9bBaeYIk82Ngeuy3oNM,56
|
|
5
5
|
flutter/flet_lottie/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
6
6
|
flutter/flet_lottie/README.md,sha256=OgI2ZU2SVP2IEyl49IASnC7Al17h1FQ035nKSP6UPaU,62
|
|
7
7
|
flutter/flet_lottie/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
8
|
-
flutter/flet_lottie/pubspec.lock,sha256=
|
|
9
|
-
flutter/flet_lottie/pubspec.yaml,sha256=
|
|
8
|
+
flutter/flet_lottie/pubspec.lock,sha256=Pxgy2iItf3gOyFRLnwg2BHKhDJJGVtc2awsMQFXGycA,23727
|
|
9
|
+
flutter/flet_lottie/pubspec.yaml,sha256=5uoowxOHLukFO8AFSNkdFUeFdRRw_oGIEWwErWYbVQE,507
|
|
10
10
|
flutter/flet_lottie/lib/flet_lottie.dart,sha256=kvOuBQkwU9DRqcfAhwamrYXmy3uyOB48-R3rXVukAsI,66
|
|
11
11
|
flutter/flet_lottie/lib/src/extension.dart,sha256=AQFOiue9kMRMX5jn_YSmTKx44CYuoIsemLNT38CLjbw,347
|
|
12
12
|
flutter/flet_lottie/lib/src/lottie.dart,sha256=IWwIql3oUiTwE8CSdGsCPHGZBwwxyU7SSm0mhkkRdXQ,3971
|
|
13
|
-
flet_lottie-0.2.0.
|
|
14
|
-
flet_lottie-0.2.0.
|
|
15
|
-
flet_lottie-0.2.0.
|
|
16
|
-
flet_lottie-0.2.0.
|
|
13
|
+
flet_lottie-0.2.0.dev60.dist-info/METADATA,sha256=7ujtlx1ucUQu-_qdK9HdbQ5_DjnhZUIbpxLGasIqohU,1943
|
|
14
|
+
flet_lottie-0.2.0.dev60.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
15
|
+
flet_lottie-0.2.0.dev60.dist-info/top_level.txt,sha256=RFKJcUq-1rW9i9tkjYL1AzMuJFXiAqoWK0YIjIG3Gj8,20
|
|
16
|
+
flet_lottie-0.2.0.dev60.dist-info/RECORD,,
|
flutter/flet_lottie/pubspec.lock
CHANGED
|
@@ -21,10 +21,10 @@ packages:
|
|
|
21
21
|
dependency: transitive
|
|
22
22
|
description:
|
|
23
23
|
name: async
|
|
24
|
-
sha256:
|
|
24
|
+
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
|
|
25
25
|
url: "https://pub.dev"
|
|
26
26
|
source: hosted
|
|
27
|
-
version: "2.
|
|
27
|
+
version: "2.13.0"
|
|
28
28
|
boolean_selector:
|
|
29
29
|
dependency: transitive
|
|
30
30
|
description:
|
|
@@ -73,6 +73,14 @@ packages:
|
|
|
73
73
|
url: "https://pub.dev"
|
|
74
74
|
source: hosted
|
|
75
75
|
version: "3.0.6"
|
|
76
|
+
dbus:
|
|
77
|
+
dependency: transitive
|
|
78
|
+
description:
|
|
79
|
+
name: dbus
|
|
80
|
+
sha256: "79e0c23480ff85dc68de79e2cd6334add97e48f7f4865d17686dd6ea81a47e8c"
|
|
81
|
+
url: "https://pub.dev"
|
|
82
|
+
source: hosted
|
|
83
|
+
version: "0.7.11"
|
|
76
84
|
device_info_plus:
|
|
77
85
|
dependency: transitive
|
|
78
86
|
description:
|
|
@@ -101,10 +109,10 @@ packages:
|
|
|
101
109
|
dependency: transitive
|
|
102
110
|
description:
|
|
103
111
|
name: fake_async
|
|
104
|
-
sha256: "
|
|
112
|
+
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
|
|
105
113
|
url: "https://pub.dev"
|
|
106
114
|
source: hosted
|
|
107
|
-
version: "1.3.
|
|
115
|
+
version: "1.3.3"
|
|
108
116
|
ffi:
|
|
109
117
|
dependency: transitive
|
|
110
118
|
description:
|
|
@@ -125,16 +133,16 @@ packages:
|
|
|
125
133
|
dependency: transitive
|
|
126
134
|
description:
|
|
127
135
|
name: file_picker
|
|
128
|
-
sha256:
|
|
136
|
+
sha256: ef7d2a085c1b1d69d17b6842d0734aad90156de08df6bd3c12496d0bd6ddf8e2
|
|
129
137
|
url: "https://pub.dev"
|
|
130
138
|
source: hosted
|
|
131
|
-
version: "10.
|
|
139
|
+
version: "10.3.1"
|
|
132
140
|
flet:
|
|
133
141
|
dependency: "direct main"
|
|
134
142
|
description:
|
|
135
143
|
path: "packages/flet"
|
|
136
144
|
ref: main
|
|
137
|
-
resolved-ref:
|
|
145
|
+
resolved-ref: "4ea9558543657d31dba3b11d6017beed2e16d447"
|
|
138
146
|
url: "https://github.com/flet-dev/flet.git"
|
|
139
147
|
source: git
|
|
140
148
|
version: "0.70.0"
|
|
@@ -155,10 +163,10 @@ packages:
|
|
|
155
163
|
dependency: "direct dev"
|
|
156
164
|
description:
|
|
157
165
|
name: flutter_lints
|
|
158
|
-
sha256:
|
|
166
|
+
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
|
|
159
167
|
url: "https://pub.dev"
|
|
160
168
|
source: hosted
|
|
161
|
-
version: "
|
|
169
|
+
version: "3.0.2"
|
|
162
170
|
flutter_localizations:
|
|
163
171
|
dependency: transitive
|
|
164
172
|
description: flutter
|
|
@@ -176,10 +184,10 @@ packages:
|
|
|
176
184
|
dependency: transitive
|
|
177
185
|
description:
|
|
178
186
|
name: flutter_plugin_android_lifecycle
|
|
179
|
-
sha256:
|
|
187
|
+
sha256: "6382ce712ff69b0f719640ce957559dde459e55ecd433c767e06d139ddf16cab"
|
|
180
188
|
url: "https://pub.dev"
|
|
181
189
|
source: hosted
|
|
182
|
-
version: "2.0.
|
|
190
|
+
version: "2.0.29"
|
|
183
191
|
flutter_svg:
|
|
184
192
|
dependency: transitive
|
|
185
193
|
description:
|
|
@@ -226,10 +234,10 @@ packages:
|
|
|
226
234
|
dependency: transitive
|
|
227
235
|
description:
|
|
228
236
|
name: intl
|
|
229
|
-
sha256:
|
|
237
|
+
sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
|
|
230
238
|
url: "https://pub.dev"
|
|
231
239
|
source: hosted
|
|
232
|
-
version: "0.
|
|
240
|
+
version: "0.20.2"
|
|
233
241
|
json_annotation:
|
|
234
242
|
dependency: transitive
|
|
235
243
|
description:
|
|
@@ -242,10 +250,10 @@ packages:
|
|
|
242
250
|
dependency: transitive
|
|
243
251
|
description:
|
|
244
252
|
name: leak_tracker
|
|
245
|
-
sha256:
|
|
253
|
+
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
|
|
246
254
|
url: "https://pub.dev"
|
|
247
255
|
source: hosted
|
|
248
|
-
version: "10.0.
|
|
256
|
+
version: "10.0.9"
|
|
249
257
|
leak_tracker_flutter_testing:
|
|
250
258
|
dependency: transitive
|
|
251
259
|
description:
|
|
@@ -266,10 +274,10 @@ packages:
|
|
|
266
274
|
dependency: transitive
|
|
267
275
|
description:
|
|
268
276
|
name: lints
|
|
269
|
-
sha256:
|
|
277
|
+
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
|
|
270
278
|
url: "https://pub.dev"
|
|
271
279
|
source: hosted
|
|
272
|
-
version: "
|
|
280
|
+
version: "3.0.0"
|
|
273
281
|
logging:
|
|
274
282
|
dependency: transitive
|
|
275
283
|
description:
|
|
@@ -370,10 +378,10 @@ packages:
|
|
|
370
378
|
dependency: transitive
|
|
371
379
|
description:
|
|
372
380
|
name: path_provider_foundation
|
|
373
|
-
sha256: "
|
|
381
|
+
sha256: "16eef174aacb07e09c351502740fa6254c165757638eba1e9116b0a781201bbd"
|
|
374
382
|
url: "https://pub.dev"
|
|
375
383
|
source: hosted
|
|
376
|
-
version: "2.4.
|
|
384
|
+
version: "2.4.2"
|
|
377
385
|
path_provider_linux:
|
|
378
386
|
dependency: transitive
|
|
379
387
|
description:
|
|
@@ -470,14 +478,22 @@ packages:
|
|
|
470
478
|
url: "https://pub.dev"
|
|
471
479
|
source: hosted
|
|
472
480
|
version: "0.2.0"
|
|
481
|
+
screenshot:
|
|
482
|
+
dependency: transitive
|
|
483
|
+
description:
|
|
484
|
+
name: screenshot
|
|
485
|
+
sha256: "63817697a7835e6ce82add4228e15d233b74d42975c143ad8cfe07009fab866b"
|
|
486
|
+
url: "https://pub.dev"
|
|
487
|
+
source: hosted
|
|
488
|
+
version: "3.0.0"
|
|
473
489
|
sensors_plus:
|
|
474
490
|
dependency: transitive
|
|
475
491
|
description:
|
|
476
492
|
name: sensors_plus
|
|
477
|
-
sha256: "
|
|
493
|
+
sha256: "89e2bfc3d883743539ce5774a2b93df61effde40ff958ecad78cd66b1a8b8d52"
|
|
478
494
|
url: "https://pub.dev"
|
|
479
495
|
source: hosted
|
|
480
|
-
version: "6.1.
|
|
496
|
+
version: "6.1.2"
|
|
481
497
|
sensors_plus_platform_interface:
|
|
482
498
|
dependency: transitive
|
|
483
499
|
description:
|
|
@@ -498,10 +514,10 @@ packages:
|
|
|
498
514
|
dependency: transitive
|
|
499
515
|
description:
|
|
500
516
|
name: shared_preferences_android
|
|
501
|
-
sha256: "
|
|
517
|
+
sha256: "5bcf0772a761b04f8c6bf814721713de6f3e5d9d89caf8d3fe031b02a342379e"
|
|
502
518
|
url: "https://pub.dev"
|
|
503
519
|
source: hosted
|
|
504
|
-
version: "2.4.
|
|
520
|
+
version: "2.4.11"
|
|
505
521
|
shared_preferences_foundation:
|
|
506
522
|
dependency: transitive
|
|
507
523
|
description:
|
|
@@ -615,18 +631,18 @@ packages:
|
|
|
615
631
|
dependency: transitive
|
|
616
632
|
description:
|
|
617
633
|
name: url_launcher_android
|
|
618
|
-
sha256: "
|
|
634
|
+
sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656"
|
|
619
635
|
url: "https://pub.dev"
|
|
620
636
|
source: hosted
|
|
621
|
-
version: "6.3.
|
|
637
|
+
version: "6.3.17"
|
|
622
638
|
url_launcher_ios:
|
|
623
639
|
dependency: transitive
|
|
624
640
|
description:
|
|
625
641
|
name: url_launcher_ios
|
|
626
|
-
sha256:
|
|
642
|
+
sha256: d80b3f567a617cb923546034cc94bfe44eb15f989fe670b37f26abdb9d939cb7
|
|
627
643
|
url: "https://pub.dev"
|
|
628
644
|
source: hosted
|
|
629
|
-
version: "6.3.
|
|
645
|
+
version: "6.3.4"
|
|
630
646
|
url_launcher_linux:
|
|
631
647
|
dependency: transitive
|
|
632
648
|
description:
|
|
@@ -639,10 +655,10 @@ packages:
|
|
|
639
655
|
dependency: transitive
|
|
640
656
|
description:
|
|
641
657
|
name: url_launcher_macos
|
|
642
|
-
sha256:
|
|
658
|
+
sha256: c043a77d6600ac9c38300567f33ef12b0ef4f4783a2c1f00231d2b1941fea13f
|
|
643
659
|
url: "https://pub.dev"
|
|
644
660
|
source: hosted
|
|
645
|
-
version: "3.2.
|
|
661
|
+
version: "3.2.3"
|
|
646
662
|
url_launcher_platform_interface:
|
|
647
663
|
dependency: transitive
|
|
648
664
|
description:
|
|
@@ -687,10 +703,10 @@ packages:
|
|
|
687
703
|
dependency: transitive
|
|
688
704
|
description:
|
|
689
705
|
name: vector_graphics_compiler
|
|
690
|
-
sha256:
|
|
706
|
+
sha256: ca81fdfaf62a5ab45d7296614aea108d2c7d0efca8393e96174bf4d51e6725b0
|
|
691
707
|
url: "https://pub.dev"
|
|
692
708
|
source: hosted
|
|
693
|
-
version: "1.1.
|
|
709
|
+
version: "1.1.18"
|
|
694
710
|
vector_math:
|
|
695
711
|
dependency: transitive
|
|
696
712
|
description:
|
|
@@ -703,10 +719,10 @@ packages:
|
|
|
703
719
|
dependency: transitive
|
|
704
720
|
description:
|
|
705
721
|
name: vm_service
|
|
706
|
-
sha256:
|
|
722
|
+
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
|
|
707
723
|
url: "https://pub.dev"
|
|
708
724
|
source: hosted
|
|
709
|
-
version: "
|
|
725
|
+
version: "15.0.0"
|
|
710
726
|
web:
|
|
711
727
|
dependency: transitive
|
|
712
728
|
description:
|
|
@@ -735,10 +751,10 @@ packages:
|
|
|
735
751
|
dependency: transitive
|
|
736
752
|
description:
|
|
737
753
|
name: win32
|
|
738
|
-
sha256: "
|
|
754
|
+
sha256: "66814138c3562338d05613a6e368ed8cfb237ad6d64a9e9334be3f309acfca03"
|
|
739
755
|
url: "https://pub.dev"
|
|
740
756
|
source: hosted
|
|
741
|
-
version: "5.
|
|
757
|
+
version: "5.14.0"
|
|
742
758
|
win32_registry:
|
|
743
759
|
dependency: transitive
|
|
744
760
|
description:
|
|
@@ -780,5 +796,5 @@ packages:
|
|
|
780
796
|
source: hosted
|
|
781
797
|
version: "6.5.0"
|
|
782
798
|
sdks:
|
|
783
|
-
dart: ">=3.
|
|
799
|
+
dart: ">=3.8.0 <4.0.0"
|
|
784
800
|
flutter: ">=3.29.0"
|
flutter/flet_lottie/pubspec.yaml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|