flet-lottie 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6370__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/lottie.py CHANGED
@@ -15,15 +15,14 @@ class Lottie(ft.LayoutControl):
15
15
  """
16
16
  The source of the Lottie file.
17
17
 
18
- Can be a URL or a local [asset file](https://flet.dev/docs/cookbook/assets).
18
+ Can be a URL or a local [asset file](https://docs.flet.dev/cookbook/assets).
19
19
 
20
20
  Note:
21
- If both `src` and [`src_base64`][..] are provided,
21
+ If both `src` and [`src_base64`][(c).] are provided,
22
22
  `src_base64` will be prioritized/used.
23
23
 
24
24
  Raises:
25
- AssertionError: If neither [`src`][(c).] nor
26
- [`src_base64`][(c).] is provided.
25
+ ValueError: If neither `src` nor [`src_base64`][(c).] is provided.
27
26
  """
28
27
 
29
28
  src_base64: Optional[str] = None
@@ -31,12 +30,11 @@ class Lottie(ft.LayoutControl):
31
30
  The base64 encoded string of the Lottie file.
32
31
 
33
32
  Note:
34
- If both `src_base64` and [`src`][..] are provided,
33
+ If both `src_base64` and [`src`][(c).] are provided,
35
34
  `src_base64` will be prioritized/used.
36
35
 
37
36
  Raises:
38
- AssertionError: If neither [`src`][(c).] nor
39
- [`src_base64`][(c).] is provided.
37
+ ValueError: If neither `src_base64` nor [`src`][(c).] is provided.
40
38
  """
41
39
 
42
40
  repeat: bool = True
@@ -44,7 +42,7 @@ class Lottie(ft.LayoutControl):
44
42
  Whether the animation should repeat in a loop.
45
43
 
46
44
  Note:
47
- Has no effect if [`animate`][..] is `False`.
45
+ Has no effect if [`animate`][(c).] is `False`.
48
46
  """
49
47
 
50
48
  reverse: bool = False
@@ -53,7 +51,7 @@ class Lottie(ft.LayoutControl):
53
51
  (from start to end and then continuously from end to start).
54
52
 
55
53
  Note:
56
- Has no effect if [`animate`][..] or [`repeat`][..] is `False`.
54
+ Has no effect if [`animate`][(c).] or [`repeat`][(c).] is `False`.
57
55
  """
58
56
 
59
57
  animate: bool = True
@@ -97,7 +95,7 @@ class Lottie(ft.LayoutControl):
97
95
  A control to display when an error occurs
98
96
  while loading the Lottie animation.
99
97
 
100
- For more information on the error, see [`on_error`][..].
98
+ For more information on the error, see [`on_error`][(c).].
101
99
  """
102
100
 
103
101
  on_error: Optional[ft.ControlEventHandler["Lottie"]] = None
@@ -110,6 +108,5 @@ class Lottie(ft.LayoutControl):
110
108
 
111
109
  def before_update(self):
112
110
  super().before_update()
113
- assert self.src or self.src_base64, (
114
- "at least one of src and src_base64 must be provided"
115
- )
111
+ if not (self.src or self.src_base64):
112
+ raise ValueError("at least one of src and src_base64 must be provided")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-lottie
3
- Version: 0.70.0.dev6365
3
+ Version: 0.70.0.dev6370
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
@@ -11,7 +11,7 @@ Project-URL: Issues, https://github.com/flet-dev/flet/issues
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: flet==0.70.0.dev6365
14
+ Requires-Dist: flet==0.70.0.dev6370
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-lottie
@@ -1,13 +1,13 @@
1
1
  flet_lottie/__init__.py,sha256=SpVjw6l9hszMJP2j7y-p3qScJDYHRiDXOWS1nMjG29c,60
2
- flet_lottie/lottie.py,sha256=9rKRt4hGSh4qbsBvTtzj5Hd1twkaZqbun6BWAS6sBB0,2734
3
- flet_lottie-0.70.0.dev6365.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
2
+ flet_lottie/lottie.py,sha256=kWQ1323qD6V2wWMbjdCsZaE8sAKvQ00qPiI6qM2z410,2706
3
+ flet_lottie-0.70.0.dev6370.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
4
  flutter/flet_lottie/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
5
5
  flutter/flet_lottie/pubspec.lock,sha256=zNAkQNWtgRt5A9jZWWP2XymG5dtcxwAHgFu3WQkgCHM,23871
6
6
  flutter/flet_lottie/pubspec.yaml,sha256=FEW_NnMYi4kguw3AW2xqaoCcbzZxnPPmH6rwUAXWrrQ,355
7
7
  flutter/flet_lottie/lib/flet_lottie.dart,sha256=kvOuBQkwU9DRqcfAhwamrYXmy3uyOB48-R3rXVukAsI,66
8
8
  flutter/flet_lottie/lib/src/extension.dart,sha256=AQFOiue9kMRMX5jn_YSmTKx44CYuoIsemLNT38CLjbw,347
9
9
  flutter/flet_lottie/lib/src/lottie.dart,sha256=IWwIql3oUiTwE8CSdGsCPHGZBwwxyU7SSm0mhkkRdXQ,3971
10
- flet_lottie-0.70.0.dev6365.dist-info/METADATA,sha256=ifmg61ib57YGnj8z2tEhO5Q9OsgFeph5AmBbav194dU,1914
11
- flet_lottie-0.70.0.dev6365.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- flet_lottie-0.70.0.dev6365.dist-info/top_level.txt,sha256=RFKJcUq-1rW9i9tkjYL1AzMuJFXiAqoWK0YIjIG3Gj8,20
13
- flet_lottie-0.70.0.dev6365.dist-info/RECORD,,
10
+ flet_lottie-0.70.0.dev6370.dist-info/METADATA,sha256=_mf83FtZtHwFbTlEZePwdVFAg37nRAy9Zkta4h4R7jQ,1914
11
+ flet_lottie-0.70.0.dev6370.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ flet_lottie-0.70.0.dev6370.dist-info/top_level.txt,sha256=RFKJcUq-1rW9i9tkjYL1AzMuJFXiAqoWK0YIjIG3Gj8,20
13
+ flet_lottie-0.70.0.dev6370.dist-info/RECORD,,