flet-geolocator 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6412__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.
- flet_geolocator/geolocator.py +17 -8
- {flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/METADATA +2 -2
- {flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/RECORD +7 -7
- flutter/flet_geolocator/pubspec.lock +2 -2
- {flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/WHEEL +0 -0
- {flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/licenses/LICENSE +0 -0
- {flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/top_level.txt +0 -0
flet_geolocator/geolocator.py
CHANGED
|
@@ -55,9 +55,9 @@ class Geolocator(ft.Service):
|
|
|
55
55
|
Note:
|
|
56
56
|
Depending on the availability of different location services,
|
|
57
57
|
this can take several seconds. It is recommended to call the
|
|
58
|
-
[`get_last_known_position`][
|
|
58
|
+
[`get_last_known_position`][(c).] method first to receive a
|
|
59
59
|
known/cached position and update it with the result of the
|
|
60
|
-
[`get_current_position`][
|
|
60
|
+
[`get_current_position`][(c).] method.
|
|
61
61
|
|
|
62
62
|
Args:
|
|
63
63
|
configuration: Additional configuration for the location request.
|
|
@@ -86,9 +86,12 @@ class Geolocator(ft.Service):
|
|
|
86
86
|
The last known position of the device as a [`GeolocatorPosition`][(p).].
|
|
87
87
|
|
|
88
88
|
Raises:
|
|
89
|
-
|
|
89
|
+
FletUnsupportedPlatformException: If invoked on a web platform.
|
|
90
90
|
"""
|
|
91
|
-
|
|
91
|
+
if self.page.web:
|
|
92
|
+
raise ft.FletUnsupportedPlatformException(
|
|
93
|
+
"get_last_known_position is not supported on web"
|
|
94
|
+
)
|
|
92
95
|
r = await self._invoke_method(
|
|
93
96
|
"get_last_known_position",
|
|
94
97
|
)
|
|
@@ -138,9 +141,12 @@ class Geolocator(ft.Service):
|
|
|
138
141
|
`True` if the app's settings were opened successfully, `False` otherwise.
|
|
139
142
|
|
|
140
143
|
Raises:
|
|
141
|
-
|
|
144
|
+
FletUnsupportedPlatformException: If invoked on a web platform.
|
|
142
145
|
"""
|
|
143
|
-
|
|
146
|
+
if self.page.web:
|
|
147
|
+
raise ft.FletUnsupportedPlatformException(
|
|
148
|
+
"open_app_settings is not supported on web"
|
|
149
|
+
)
|
|
144
150
|
return await self._invoke_method(
|
|
145
151
|
"open_app_settings",
|
|
146
152
|
)
|
|
@@ -156,9 +162,12 @@ class Geolocator(ft.Service):
|
|
|
156
162
|
`True` if the device's settings were opened successfully, `False` otherwise.
|
|
157
163
|
|
|
158
164
|
Raises:
|
|
159
|
-
|
|
165
|
+
FletUnsupportedPlatformException: If invoked on a web platform.
|
|
160
166
|
"""
|
|
161
|
-
|
|
167
|
+
if self.page.web:
|
|
168
|
+
raise ft.FletUnsupportedPlatformException(
|
|
169
|
+
"open_location_settings is not supported on web"
|
|
170
|
+
)
|
|
162
171
|
return await self._invoke_method(
|
|
163
172
|
"open_location_settings",
|
|
164
173
|
)
|
{flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-geolocator
|
|
3
|
-
Version: 0.70.0.
|
|
3
|
+
Version: 0.70.0.dev6412
|
|
4
4
|
Summary: Adds geolocation capabilities to your 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.
|
|
14
|
+
Requires-Dist: flet==0.70.0.dev6412
|
|
15
15
|
Dynamic: license-file
|
|
16
16
|
|
|
17
17
|
# flet-geolocator
|
{flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/RECORD
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
flet_geolocator/__init__.py,sha256=2oT0PnZGnjufBoTZK-3WDyYJJnZExT7OnJ-F1Qqoenw,789
|
|
2
|
-
flet_geolocator/geolocator.py,sha256=
|
|
2
|
+
flet_geolocator/geolocator.py,sha256=jE2168bZDA74oBZuWUBCx9id36YE0wNegOcSOQ67ia4,6597
|
|
3
3
|
flet_geolocator/types.py,sha256=E_68vz7BEv_PWDk1j0DAoWDOfax-XBJ9J2Ije2cOktg,13028
|
|
4
|
-
flet_geolocator-0.70.0.
|
|
4
|
+
flet_geolocator-0.70.0.dev6412.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
5
5
|
flutter/flet_geolocator/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
|
|
6
|
-
flutter/flet_geolocator/pubspec.lock,sha256=
|
|
6
|
+
flutter/flet_geolocator/pubspec.lock,sha256=zWc451IE4uzLH0-Dr0OCarQ3hUJkwjKyESH15Y3qEfM,26558
|
|
7
7
|
flutter/flet_geolocator/pubspec.yaml,sha256=-AODCVZe7N6b0OHJ4S64U1AY23h9kp8fuhR9El_jsCU,368
|
|
8
8
|
flutter/flet_geolocator/lib/flet_geolocator.dart,sha256=f5rUWcdvXkySvVjv50N-m0neLWB3P2okmEWxGg9r9Vk,70
|
|
9
9
|
flutter/flet_geolocator/lib/src/extension.dart,sha256=x8zm0Pt3ZsyTj7q8MImtLTIK_kCAoaqYaJ41NWPug-8,314
|
|
10
10
|
flutter/flet_geolocator/lib/src/geolocator.dart,sha256=GiN-E11OqatsYDIOwIgscrBhK9OPcHduttnuED6cqHs,3275
|
|
11
11
|
flutter/flet_geolocator/lib/src/utils/geolocator.dart,sha256=BZxf9l1CIvuNEnZMVONUxAnGVSXl2XY1zihP1gH6qdo,3999
|
|
12
|
-
flet_geolocator-0.70.0.
|
|
13
|
-
flet_geolocator-0.70.0.
|
|
14
|
-
flet_geolocator-0.70.0.
|
|
15
|
-
flet_geolocator-0.70.0.
|
|
12
|
+
flet_geolocator-0.70.0.dev6412.dist-info/METADATA,sha256=_8qnZ31zxe_YmSk2a2Ft8rfkC7f86fQQjm_SCCUW73M,2149
|
|
13
|
+
flet_geolocator-0.70.0.dev6412.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
flet_geolocator-0.70.0.dev6412.dist-info/top_level.txt,sha256=MuAs94VDBb5Btg9cvN83W2sHm_YslMQ2JOKZhqm88cs,24
|
|
15
|
+
flet_geolocator-0.70.0.dev6412.dist-info/RECORD,,
|
|
@@ -77,10 +77,10 @@ packages:
|
|
|
77
77
|
dependency: transitive
|
|
78
78
|
description:
|
|
79
79
|
name: device_info_plus
|
|
80
|
-
sha256:
|
|
80
|
+
sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
|
|
81
81
|
url: "https://pub.dev"
|
|
82
82
|
source: hosted
|
|
83
|
-
version: "12.
|
|
83
|
+
version: "12.2.0"
|
|
84
84
|
device_info_plus_platform_interface:
|
|
85
85
|
dependency: transitive
|
|
86
86
|
description:
|
|
File without changes
|
|
File without changes
|
{flet_geolocator-0.70.0.dev6365.dist-info → flet_geolocator-0.70.0.dev6412.dist-info}/top_level.txt
RENAMED
|
File without changes
|