flet-lottie 0.2.0.dev41__tar.gz → 0.2.0.dev48__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.

Files changed (21) hide show
  1. {flet_lottie-0.2.0.dev41/src/flet_lottie.egg-info → flet_lottie-0.2.0.dev48}/PKG-INFO +1 -1
  2. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/pyproject.toml +1 -1
  3. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie/lottie.py +23 -15
  4. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48/src/flet_lottie.egg-info}/PKG-INFO +1 -1
  5. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/pubspec.lock +3 -3
  6. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/LICENSE +0 -0
  7. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/README.md +0 -0
  8. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/setup.cfg +0 -0
  9. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie/__init__.py +0 -0
  10. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie.egg-info/SOURCES.txt +0 -0
  11. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie.egg-info/dependency_links.txt +0 -0
  12. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie.egg-info/requires.txt +0 -0
  13. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flet_lottie.egg-info/top_level.txt +0 -0
  14. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/CHANGELOG.md +0 -0
  15. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/LICENSE +0 -0
  16. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/README.md +0 -0
  17. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/analysis_options.yaml +0 -0
  18. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/lib/flet_lottie.dart +0 -0
  19. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/lib/src/extension.dart +0 -0
  20. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/lib/src/lottie.dart +0 -0
  21. {flet_lottie-0.2.0.dev41 → flet_lottie-0.2.0.dev48}/src/flutter/flet_lottie/pubspec.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-lottie
3
- Version: 0.2.0.dev41
3
+ Version: 0.2.0.dev48
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "flet-lottie"
3
- version = "0.2.0.dev41"
3
+ version = "0.2.0.dev48"
4
4
  description = "Display Lottie animations in Flet apps."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
@@ -11,16 +11,19 @@ class Lottie(ft.ConstrainedControl):
11
11
  Displays lottie animations.
12
12
 
13
13
  Raises:
14
- AssertionError: If neither `src` nor `src_base64` is provided.
14
+ AssertionError: If neither [`src`][(c).] nor
15
+ [`src_base64`][(c).] is provided.
15
16
  """
16
17
 
17
18
  src: Optional[str] = None
18
19
  """
19
- The source of the Lottie file. Can be a URL or a local [asset file](/docs/cookbook/assets).
20
+ The source of the Lottie file.
21
+
22
+ Can be a URL or a local [asset file](https://flet.dev/docs/cookbook/assets).
20
23
 
21
24
  Note:
22
- Either this or [`src_base64`][..] must be provided.
23
- If both are provided, `src_base64` will be prioritized/used.
25
+ If both `src` and [`src_base64`][..] are provided,
26
+ `src_base64` will be prioritized/used.
24
27
  """
25
28
 
26
29
  src_base64: Optional[str] = None
@@ -28,20 +31,24 @@ class Lottie(ft.ConstrainedControl):
28
31
  The base64 encoded string of the Lottie file.
29
32
 
30
33
  Note:
31
- Either this or [`src`][..] must be provided.
32
- If both are provided, this will be prioritized/used.
34
+ If both `src_base64` and [`src`][..] are provided,
35
+ `src_base64` will be prioritized/used.
33
36
  """
34
37
 
35
38
  repeat: bool = True
36
39
  """
37
- Whether the animation should repeat in a loop. Has no effect if [`animate`][..] is `False`.
40
+ Whether the animation should repeat in a loop.
41
+
42
+ Note:
43
+ Has no effect if [`animate`][..] is `False`.
38
44
  """
39
45
 
40
46
  reverse: bool = False
41
47
  """
42
48
  Whether the animation should be played in reverse (from start to end and then continuously from end to start).
43
49
 
44
- Has no effect if [`animate`][..] or [`repeat`][..] is `False`.
50
+ Note:
51
+ Has no effect if [`animate`][..] or [`repeat`][..] is `False`.
45
52
  """
46
53
 
47
54
  animate: bool = True
@@ -69,11 +76,10 @@ class Lottie(ft.ConstrainedControl):
69
76
  The quality of the image layer.
70
77
  """
71
78
 
72
- fit: Optional[ft.ImageFit] = None
79
+ fit: Optional[ft.BoxFit] = None
73
80
  """
74
- Defines how to inscribe the Lottie composition into the space allocated during layout.
75
-
76
- Value is of type [`ImageFit`](https://flet.dev/docs/reference/types/imagefit).
81
+ Defines how to inscribe the Lottie composition
82
+ into the space allocated during layout.
77
83
  """
78
84
 
79
85
  headers: Optional[Dict[str, str]] = None
@@ -83,16 +89,18 @@ class Lottie(ft.ConstrainedControl):
83
89
 
84
90
  error_content: Optional[ft.Control] = None
85
91
  """
86
- A control to display when an error occurs while loading the Lottie animation.
92
+ A control to display when an error occurs
93
+ while loading the Lottie animation.
87
94
 
88
95
  For more information on the error, see [`on_error`][..].
89
96
  """
90
97
 
91
- on_error: ft.OptionalControlEventHandler["Lottie"] = None
98
+ on_error: Optional[ft.ControlEventHandler["Lottie"]] = None
92
99
  """
93
100
  Fires when an error occurs while loading the Lottie animation.
94
101
 
95
- The `data` property of the event handler argument contains information on the error.
102
+ The `data` property of the event handler argument
103
+ contains information on the error.
96
104
  """
97
105
 
98
106
  def before_update(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-lottie
3
- Version: 0.2.0.dev41
3
+ Version: 0.2.0.dev48
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
@@ -134,7 +134,7 @@ packages:
134
134
  description:
135
135
  path: "packages/flet"
136
136
  ref: main
137
- resolved-ref: b996d06ff462b88f5b31d6cceafac34ea6f57968
137
+ resolved-ref: be4c22de198efdf5d317bd5806b7d6903b1e180e
138
138
  url: "https://github.com/flet-dev/flet.git"
139
139
  source: git
140
140
  version: "0.70.0"
@@ -751,10 +751,10 @@ packages:
751
751
  dependency: transitive
752
752
  description:
753
753
  name: window_manager
754
- sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16"
754
+ sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
755
755
  url: "https://pub.dev"
756
756
  source: hosted
757
- version: "0.5.0"
757
+ version: "0.5.1"
758
758
  window_to_front:
759
759
  dependency: transitive
760
760
  description: