flet-flashlight 0.2.0.dev30__py3-none-any.whl → 0.2.0.dev42__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-flashlight might be problematic. Click here for more details.

@@ -8,3 +8,14 @@ from .exceptions import (
8
8
  FlashlightException,
9
9
  )
10
10
  from .flashlight import Flashlight
11
+
12
+ __all__ = [
13
+ "Flashlight",
14
+ "FlashlightDisableException",
15
+ "FlashlightDisableExistentUserException",
16
+ "FlashlightDisableNotAvailableException",
17
+ "FlashlightEnableException",
18
+ "FlashlightEnableExistentUserException",
19
+ "FlashlightEnableNotAvailableException",
20
+ "FlashlightException",
21
+ ]
@@ -1,3 +1,14 @@
1
+ __all__ = [
2
+ "FlashlightDisableException",
3
+ "FlashlightDisableExistentUserException",
4
+ "FlashlightDisableNotAvailableException",
5
+ "FlashlightEnableException",
6
+ "FlashlightEnableExistentUserException",
7
+ "FlashlightEnableNotAvailableException",
8
+ "FlashlightException",
9
+ ]
10
+
11
+
1
12
  class FlashlightException(Exception):
2
13
  """
3
14
  Base class for all [`Flashlight`][(p).] exceptions.
@@ -1,8 +1,17 @@
1
1
  import asyncio
2
+ from typing import Optional
2
3
 
3
4
  import flet as ft
4
5
 
5
- from .exceptions import *
6
+ from .exceptions import (
7
+ FlashlightDisableException,
8
+ FlashlightDisableExistentUserException,
9
+ FlashlightDisableNotAvailableException,
10
+ FlashlightEnableException,
11
+ FlashlightEnableExistentUserException,
12
+ FlashlightEnableNotAvailableException,
13
+ FlashlightException,
14
+ )
6
15
 
7
16
  __all__ = ["Flashlight"]
8
17
 
@@ -10,10 +19,11 @@ __all__ = ["Flashlight"]
10
19
  @ft.control("Flashlight")
11
20
  class Flashlight(ft.Service):
12
21
  """
13
- A control to use FlashLight. Works on iOS and Android. Based on torch_light Flutter widget (https://pub.dev/packages/torch_light).
22
+ A control to use FlashLight. Works on iOS and Android.
14
23
 
15
24
  Note:
16
- This control is a non-visual and should be added to `page.services` list before it can be used.
25
+ This control is a non-visual and should be added
26
+ to [`Page.services`][flet.Page.services] list before it can be used.
17
27
  """
18
28
 
19
29
  on = False
@@ -21,11 +31,12 @@ class Flashlight(ft.Service):
21
31
  Whether the flashlight is currently turned on.
22
32
  """
23
33
 
24
- on_error: ft.OptionalControlEventHandler["Flashlight"] = None
34
+ on_error: Optional[ft.ControlEventHandler["Flashlight"]] = None
25
35
  """
26
36
  Fires when an error occurs.
27
-
28
- The `data` property of the event handler argument contains information on the error.
37
+
38
+ The [`data`][flet.Event.data] property of the event handler argument
39
+ contains information on the error.
29
40
  """
30
41
 
31
42
  async def turn_on_async(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-flashlight
3
- Version: 0.2.0.dev30
3
+ Version: 0.2.0.dev42
4
4
  Summary: A Flet extension to manage the device torch/flashlight.
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-flashlight/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
14
+ Requires-Dist: flet>=0.70.0.dev0
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-flashlight
@@ -1,17 +1,17 @@
1
- flet_flashlight/__init__.py,sha256=rHtI5Bax-3ipIvKYvfeHqxAiaYkrT4L6vVzCgD6VNVQ,325
2
- flet_flashlight/exceptions.py,sha256=fjWlPGb7YsOGkHCHu2mjo_UHiCC0V5hN_JFglbdoMks,1625
3
- flet_flashlight/flashlight.py,sha256=3-HoeBGA-K5HZ-nneo5Cpb7b1VNMW_UZtNQj9w6qaGg,2989
4
- flet_flashlight-0.2.0.dev30.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1
+ flet_flashlight/__init__.py,sha256=HeAGCDBu6m5xIHk9J5RwTwLsx78T295V_g6NPgTQLCw,634
2
+ flet_flashlight/exceptions.py,sha256=GZyn_wUgu9n9iR4Z5955ql1dILRY6Tk9huJGOiI5BAQ,1917
3
+ flet_flashlight/flashlight.py,sha256=qXNru4bv_7l6PBABOZU9zhPntRuskY2tS1u8nyK1i1g,3256
4
+ flet_flashlight-0.2.0.dev42.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  flutter/flet_flashlight/CHANGELOG.md,sha256=66sWepPaeTc9_lzcYIGU55AlxSU5Z1XVtknXpzd_-p8,40
6
6
  flutter/flet_flashlight/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
7
7
  flutter/flet_flashlight/README.md,sha256=OCxLYGKGbpyTQOxMCbVoxLjrY1pdVVGGxtp0OBx23IA,70
8
8
  flutter/flet_flashlight/analysis_options.yaml,sha256=tNXU6s4EJ4KmXROObwPetH5vkzRTVG4AH4gpMw85_EY,154
9
- flutter/flet_flashlight/pubspec.lock,sha256=pvILn_gGbx7-71fubXI4MH4yPidtHjfD0C7fIwQpvL4,23057
10
- flutter/flet_flashlight/pubspec.yaml,sha256=tHx0OtDMn-BcteXQ3tMpmOU1FWNaO1m7DsAFj5TEBEc,527
9
+ flutter/flet_flashlight/pubspec.lock,sha256=E4xyDSVnyIxklvHeLaTR0BFwqJ1IOPZllAo1BsXxddk,23059
10
+ flutter/flet_flashlight/pubspec.yaml,sha256=RIBc9yNy9daBOTJLCYnfKddIkweyN7i9huwN2vHbFkc,529
11
11
  flutter/flet_flashlight/lib/flet_flashlight.dart,sha256=66hr4Shizat1MIyu957NiJI_xXYOSeOJbFI489qw7ok,70
12
12
  flutter/flet_flashlight/lib/src/extension.dart,sha256=hAXduLLxlX9YmQYcYO8O-dXN7QEybmM2OiRScUUZOXE,314
13
13
  flutter/flet_flashlight/lib/src/flashlight.dart,sha256=WnUQo7IcXmEAeQDZnhwEgizU4AinxzJ_SLSTfGszIe0,3453
14
- flet_flashlight-0.2.0.dev30.dist-info/METADATA,sha256=9IZcBALN20kSrUD8uSb0m2Q4WXJFO47rmiqoIohRmzA,1958
15
- flet_flashlight-0.2.0.dev30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- flet_flashlight-0.2.0.dev30.dist-info/top_level.txt,sha256=C3-VxFNdp8KnPIGb_CRsg2BPEtDQN0NEcbotjs3cUv4,24
17
- flet_flashlight-0.2.0.dev30.dist-info/RECORD,,
14
+ flet_flashlight-0.2.0.dev42.dist-info/METADATA,sha256=rf6nER2IZmzfh15Zi7fn89lcjMeZfpJ3LLN7913yaPU,1963
15
+ flet_flashlight-0.2.0.dev42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ flet_flashlight-0.2.0.dev42.dist-info/top_level.txt,sha256=C3-VxFNdp8KnPIGb_CRsg2BPEtDQN0NEcbotjs3cUv4,24
17
+ flet_flashlight-0.2.0.dev42.dist-info/RECORD,,
@@ -125,8 +125,8 @@ packages:
125
125
  dependency: "direct main"
126
126
  description:
127
127
  path: "packages/flet"
128
- ref: v1
129
- resolved-ref: f76d1c5dd805ec81a5a5d63300d61413a5bf27ae
128
+ ref: main
129
+ resolved-ref: cf8823c5d766ea7866480986aa3ee871f4091e78
130
130
  url: "https://github.com/flet-dev/flet.git"
131
131
  source: git
132
132
  version: "0.70.0"
@@ -147,10 +147,10 @@ packages:
147
147
  dependency: "direct dev"
148
148
  description:
149
149
  name: flutter_lints
150
- sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
150
+ sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
151
151
  url: "https://pub.dev"
152
152
  source: hosted
153
- version: "2.0.3"
153
+ version: "3.0.2"
154
154
  flutter_localizations:
155
155
  dependency: transitive
156
156
  description: flutter
@@ -258,10 +258,10 @@ packages:
258
258
  dependency: transitive
259
259
  description:
260
260
  name: lints
261
- sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
261
+ sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
262
262
  url: "https://pub.dev"
263
263
  source: hosted
264
- version: "2.1.1"
264
+ version: "3.0.0"
265
265
  logging:
266
266
  dependency: transitive
267
267
  description:
@@ -743,10 +743,10 @@ packages:
743
743
  dependency: transitive
744
744
  description:
745
745
  name: window_manager
746
- sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16"
746
+ sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
747
747
  url: "https://pub.dev"
748
748
  source: hosted
749
- version: "0.5.0"
749
+ version: "0.5.1"
750
750
  window_to_front:
751
751
  dependency: transitive
752
752
  description:
@@ -16,8 +16,8 @@ dependencies:
16
16
  git:
17
17
  url: https://github.com/flet-dev/flet.git
18
18
  path: packages/flet
19
- ref: v1
19
+ ref: main
20
20
  dev_dependencies:
21
21
  flutter_test:
22
22
  sdk: flutter
23
- flutter_lints: ^2.0.0
23
+ flutter_lints: ^3.0.0