flet-lottie 0.2.0.dev48__py3-none-any.whl → 0.2.0.dev55__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 CHANGED
@@ -1 +1,3 @@
1
1
  from .lottie import Lottie
2
+
3
+ __all__ = ["Lottie"]
flet_lottie/lottie.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Dict, Optional
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 (from start to end and then continuously from end to start).
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[Dict[str, str]] = None
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, "either src or src_base64 must be provided"
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.dev48
3
+ Version: 0.2.0.dev55
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
@@ -1,16 +1,16 @@
1
- flet_lottie/__init__.py,sha256=L7fiDIsQNS-W20x9GOozjRXxEd9YhR18Sz7GgW1neYg,27
2
- flet_lottie/lottie.py,sha256=tkot41OwfYo8lm152fdLT5G7fM57s3wG_l8ykxloXc0,2609
3
- flet_lottie-0.2.0.dev48.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1
+ flet_lottie/__init__.py,sha256=vlxeJlQTV6GLTFzZHPrq2AaVPYoGq-vwzMA4usdq44E,49
2
+ flet_lottie/lottie.py,sha256=wzzabD94fkL271RfCiu-WRX2pIHaydLtm32-EMeSXeA,2623
3
+ flet_lottie-0.2.0.dev55.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=Pnsj0F1vDEPGff4J3FGarU3sY5Zqcw04D-AiEySlV48,23274
9
- flutter/flet_lottie/pubspec.yaml,sha256=NS7Uhi_Foj_EMSkZZAqjjX-vljUnFvprnMmy-auHNOQ,507
8
+ flutter/flet_lottie/pubspec.lock,sha256=-kS57uoI5IK_lNBy6NfjOVXaiAJK0U7Tf98WIxwGyTU,23274
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.dev48.dist-info/METADATA,sha256=G7mXl4lY7F4dUQ9WfRZtYyHkj2BisyqyTXrkrQ6PpqQ,1929
14
- flet_lottie-0.2.0.dev48.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- flet_lottie-0.2.0.dev48.dist-info/top_level.txt,sha256=RFKJcUq-1rW9i9tkjYL1AzMuJFXiAqoWK0YIjIG3Gj8,20
16
- flet_lottie-0.2.0.dev48.dist-info/RECORD,,
13
+ flet_lottie-0.2.0.dev55.dist-info/METADATA,sha256=cWi_zZ8nBLTkkiJy6HXcEMVOY-p-CuNcuOmTFGUB48g,1929
14
+ flet_lottie-0.2.0.dev55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ flet_lottie-0.2.0.dev55.dist-info/top_level.txt,sha256=RFKJcUq-1rW9i9tkjYL1AzMuJFXiAqoWK0YIjIG3Gj8,20
16
+ flet_lottie-0.2.0.dev55.dist-info/RECORD,,
@@ -134,7 +134,7 @@ packages:
134
134
  description:
135
135
  path: "packages/flet"
136
136
  ref: main
137
- resolved-ref: be4c22de198efdf5d317bd5806b7d6903b1e180e
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: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
158
+ sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
159
159
  url: "https://pub.dev"
160
160
  source: hosted
161
- version: "2.0.3"
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: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
269
+ sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
270
270
  url: "https://pub.dev"
271
271
  source: hosted
272
- version: "2.1.1"
272
+ version: "3.0.0"
273
273
  logging:
274
274
  dependency: transitive
275
275
  description:
@@ -20,4 +20,4 @@ dependencies:
20
20
  dev_dependencies:
21
21
  flutter_test:
22
22
  sdk: flutter
23
- flutter_lints: ^2.0.0
23
+ flutter_lints: ^3.0.0