flet-flashlight 0.2.0.dev35__tar.gz → 0.2.0.dev42__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-flashlight might be problematic. Click here for more details.
- {flet_flashlight-0.2.0.dev35/src/flet_flashlight.egg-info → flet_flashlight-0.2.0.dev42}/PKG-INFO +1 -1
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/pyproject.toml +36 -14
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight/__init__.py +11 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight/exceptions.py +11 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight/flashlight.py +17 -6
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42/src/flet_flashlight.egg-info}/PKG-INFO +1 -1
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/pubspec.lock +7 -7
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/pubspec.yaml +1 -1
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/LICENSE +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/README.md +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/setup.cfg +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight.egg-info/SOURCES.txt +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight.egg-info/dependency_links.txt +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight.egg-info/requires.txt +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight.egg-info/top_level.txt +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/CHANGELOG.md +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/LICENSE +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/README.md +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/analysis_options.yaml +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/lib/flet_flashlight.dart +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/lib/src/extension.dart +0 -0
- {flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/lib/src/flashlight.dart +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flet-flashlight"
|
|
3
|
-
version = "0.2.0.
|
|
3
|
+
version = "0.2.0.dev42"
|
|
4
4
|
description = "A Flet extension to manage the device torch/flashlight."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
|
|
@@ -20,22 +20,43 @@ Issues = "https://github.com/flet-dev/flet-flashlight/issues"
|
|
|
20
20
|
"flutter.flet_flashlight" = ["**/*"]
|
|
21
21
|
|
|
22
22
|
[dependency-groups]
|
|
23
|
+
test = [
|
|
24
|
+
"pytest >=7.2.0",
|
|
25
|
+
]
|
|
26
|
+
lint = [
|
|
27
|
+
"ruff >=0.11.7",
|
|
28
|
+
]
|
|
23
29
|
dev = [
|
|
24
|
-
"pre-commit>=4.2.0",
|
|
25
|
-
|
|
30
|
+
"pre-commit >=4.2.0",
|
|
31
|
+
{ include-group = 'lint' },
|
|
32
|
+
{ include-group = 'test' },
|
|
33
|
+
]
|
|
34
|
+
docs-coverage = [
|
|
35
|
+
"docstr-coverage >=2.3.2",
|
|
26
36
|
]
|
|
27
37
|
docs = [
|
|
28
|
-
"mkdocs",
|
|
29
|
-
"mkdocs-material",
|
|
30
|
-
"mkdocstrings
|
|
31
|
-
"mkdocstrings-python-xref",
|
|
32
|
-
"mike",
|
|
33
|
-
"markdown>=3.6",
|
|
34
|
-
"pymdown-extensions",
|
|
35
|
-
"mkdocs-
|
|
36
|
-
"mkdocs-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"mkdocs >=1.6.1",
|
|
39
|
+
"mkdocs-material >=9.6.15",
|
|
40
|
+
"mkdocstrings-python >=1.16.12",
|
|
41
|
+
"mkdocstrings-python-xref >=1.16.3",
|
|
42
|
+
"mike >=2.1.3",
|
|
43
|
+
"markdown >=3.6",
|
|
44
|
+
"pymdown-extensions >=10.16",
|
|
45
|
+
"mkdocs-exclude >=1.0.2",
|
|
46
|
+
"mkdocs-glightbox >=0.4.0",
|
|
47
|
+
"mkdocs-open-in-new-tab >=1.0.8",
|
|
48
|
+
"mkdocs-section-index >=0.3.10",
|
|
49
|
+
"griffe-modernized-annotations >=1.0.8",
|
|
50
|
+
"griffe-warnings-deprecated >=1.1.0",
|
|
51
|
+
"pygments >=2.16",
|
|
52
|
+
"markdown-exec[ansi] >=1.11.0",
|
|
53
|
+
"pydocstyle >=6.3.0",
|
|
54
|
+
"linkcheckmd >=1.4.0",
|
|
55
|
+
{ include-group = 'docs-coverage' },
|
|
56
|
+
]
|
|
57
|
+
all = [
|
|
58
|
+
{ include-group = 'dev' },
|
|
59
|
+
{ include-group = 'docs' },
|
|
39
60
|
]
|
|
40
61
|
|
|
41
62
|
[build-system]
|
|
@@ -64,6 +85,7 @@ select = [
|
|
|
64
85
|
"I"
|
|
65
86
|
]
|
|
66
87
|
preview = true
|
|
88
|
+
pydocstyle = { convention = 'google' }
|
|
67
89
|
|
|
68
90
|
[tool.ruff.format]
|
|
69
91
|
quote-style = "double"
|
|
@@ -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
|
+
]
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight/exceptions.py
RENAMED
|
@@ -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.
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight/flashlight.py
RENAMED
|
@@ -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.
|
|
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
|
|
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.
|
|
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
|
|
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):
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/pubspec.lock
RENAMED
|
@@ -126,7 +126,7 @@ packages:
|
|
|
126
126
|
description:
|
|
127
127
|
path: "packages/flet"
|
|
128
128
|
ref: main
|
|
129
|
-
resolved-ref:
|
|
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:
|
|
150
|
+
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
|
|
151
151
|
url: "https://pub.dev"
|
|
152
152
|
source: hosted
|
|
153
|
-
version: "
|
|
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:
|
|
261
|
+
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
|
|
262
262
|
url: "https://pub.dev"
|
|
263
263
|
source: hosted
|
|
264
|
-
version: "
|
|
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: "
|
|
746
|
+
sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
|
|
747
747
|
url: "https://pub.dev"
|
|
748
748
|
source: hosted
|
|
749
|
-
version: "0.5.
|
|
749
|
+
version: "0.5.1"
|
|
750
750
|
window_to_front:
|
|
751
751
|
dependency: transitive
|
|
752
752
|
description:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flet_flashlight.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/CHANGELOG.md
RENAMED
|
File without changes
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/LICENSE
RENAMED
|
File without changes
|
{flet_flashlight-0.2.0.dev35 → flet_flashlight-0.2.0.dev42}/src/flutter/flet_flashlight/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|