flet-geolocator 0.2.0.dev35__tar.gz → 0.2.0.dev45__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-geolocator might be problematic. Click here for more details.
- {flet_geolocator-0.2.0.dev35/src/flet_geolocator.egg-info → flet_geolocator-0.2.0.dev45}/PKG-INFO +1 -1
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/pyproject.toml +36 -14
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator/__init__.py +14 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator/geolocator.py +60 -23
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator/types.py +30 -27
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45/src/flet_geolocator.egg-info}/PKG-INFO +1 -1
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/pubspec.lock +7 -7
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/pubspec.yaml +1 -1
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/LICENSE +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/README.md +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/setup.cfg +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator.egg-info/SOURCES.txt +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator.egg-info/dependency_links.txt +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator.egg-info/requires.txt +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator.egg-info/top_level.txt +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/CHANGELOG.md +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/LICENSE +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/README.md +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/analysis_options.yaml +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/lib/flet_geolocator.dart +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/lib/src/extension.dart +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/lib/src/geolocator.dart +0 -0
- {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/lib/src/utils/geolocator.dart +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flet-geolocator"
|
|
3
|
-
version = "0.2.0.
|
|
3
|
+
version = "0.2.0.dev45"
|
|
4
4
|
description = "Adds geolocation capabilities to your Flet apps."
|
|
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-geolocator/issues"
|
|
|
20
20
|
"flutter.flet_geolocator" = ["**/*"]
|
|
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"
|
|
@@ -11,3 +11,17 @@ from .types import (
|
|
|
11
11
|
GeolocatorPositionChangeEvent,
|
|
12
12
|
GeolocatorWebConfiguration,
|
|
13
13
|
)
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"ForegroundNotificationConfiguration",
|
|
17
|
+
"Geolocator",
|
|
18
|
+
"GeolocatorAndroidConfiguration",
|
|
19
|
+
"GeolocatorConfiguration",
|
|
20
|
+
"GeolocatorIosActivityType",
|
|
21
|
+
"GeolocatorIosConfiguration",
|
|
22
|
+
"GeolocatorPermissionStatus",
|
|
23
|
+
"GeolocatorPosition",
|
|
24
|
+
"GeolocatorPositionAccuracy",
|
|
25
|
+
"GeolocatorPositionChangeEvent",
|
|
26
|
+
"GeolocatorWebConfiguration",
|
|
27
|
+
]
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator/geolocator.py
RENAMED
|
@@ -19,7 +19,8 @@ class Geolocator(ft.Service):
|
|
|
19
19
|
"""
|
|
20
20
|
A control that allows you to fetch GPS data from your device.
|
|
21
21
|
|
|
22
|
-
This control is non-visual and should be added to
|
|
22
|
+
This control is non-visual and should be added to
|
|
23
|
+
[`Page.overlay`][flet.] list.
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
configuration: Optional[GeolocatorConfiguration] = None
|
|
@@ -27,23 +28,22 @@ class Geolocator(ft.Service):
|
|
|
27
28
|
Some additional configuration.
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
|
-
on_position_change: ft.
|
|
31
|
-
GeolocatorPositionChangeEvent["Geolocator"]
|
|
32
|
-
] = None
|
|
31
|
+
on_position_change: Optional[ft.EventHandler[GeolocatorPositionChangeEvent]] = None
|
|
33
32
|
"""
|
|
34
33
|
Fires when the position of the device changes.
|
|
35
|
-
|
|
36
|
-
Event handler argument is of type [`GeolocatorPositionChangeEvent`][(p).].
|
|
37
34
|
"""
|
|
38
35
|
|
|
39
|
-
on_error: ft.
|
|
36
|
+
on_error: Optional[ft.ControlEventHandler["Geolocator"]] = None
|
|
40
37
|
"""
|
|
41
38
|
Fires when an error occurs.
|
|
42
|
-
|
|
43
|
-
The `data` property of the event
|
|
39
|
+
|
|
40
|
+
The [`data`][flet.Event.data] property of the event
|
|
41
|
+
handler argument contains information on the error.
|
|
44
42
|
"""
|
|
45
43
|
|
|
46
|
-
position: Optional[GeolocatorPosition] = field(
|
|
44
|
+
position: Optional[GeolocatorPosition] = field(
|
|
45
|
+
default=None, init=False
|
|
46
|
+
) # TODO: make this property readonly
|
|
47
47
|
"""
|
|
48
48
|
The current position of the device. (read-only)
|
|
49
49
|
|
|
@@ -58,19 +58,24 @@ class Geolocator(ft.Service):
|
|
|
58
58
|
"""
|
|
59
59
|
Gets the current position of the device with the desired accuracy and settings.
|
|
60
60
|
|
|
61
|
+
Note:
|
|
62
|
+
Depending on the availability of different location services,
|
|
63
|
+
this can take several seconds. It is recommended to call the
|
|
64
|
+
[`get_last_known_position`][..] method first to receive a
|
|
65
|
+
known/cached position and update it with the result of the
|
|
66
|
+
[`get_current_position`][..] method.
|
|
67
|
+
|
|
61
68
|
Args:
|
|
62
69
|
configuration: Additional configuration for the location request.
|
|
63
|
-
If not specified, then the [`Geolocator.configuration`][(p).]
|
|
70
|
+
If not specified, then the [`Geolocator.configuration`][(p).]
|
|
71
|
+
property is used.
|
|
64
72
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
73
|
+
|
|
65
74
|
Returns:
|
|
66
75
|
The current position of the device as a [`GeolocatorPosition`][(p).].
|
|
76
|
+
|
|
67
77
|
Raises:
|
|
68
78
|
TimeoutError: If the request times out.
|
|
69
|
-
|
|
70
|
-
Note:
|
|
71
|
-
Depending on the availability of different location services, this can take several seconds.
|
|
72
|
-
It is recommended to call the [`get_last_known_position`][..] method first to receive a
|
|
73
|
-
known/cached position and update it with the result of the [`get_current_position`][..] method.
|
|
74
79
|
"""
|
|
75
80
|
r = await self._invoke_method_async(
|
|
76
81
|
method_name="get_current_position",
|
|
@@ -84,21 +89,27 @@ class Geolocator(ft.Service):
|
|
|
84
89
|
) -> GeolocatorPosition:
|
|
85
90
|
"""
|
|
86
91
|
Gets the last known position stored on the user's device.
|
|
87
|
-
The accuracy can be defined using the
|
|
92
|
+
The accuracy can be defined using the
|
|
93
|
+
[`Geolocator.configuration`][(p).] property.
|
|
88
94
|
|
|
89
95
|
Note:
|
|
90
96
|
This method is not supported on web plaform.
|
|
91
97
|
|
|
92
98
|
Args:
|
|
93
99
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
100
|
+
|
|
94
101
|
Returns:
|
|
95
|
-
|
|
102
|
+
The last known position of the device as a [`GeolocatorPosition`][(p).].
|
|
103
|
+
|
|
96
104
|
Raises:
|
|
97
105
|
AssertionError: If invoked on a web platform.
|
|
98
106
|
TimeoutError: If the request times out.
|
|
99
107
|
"""
|
|
100
108
|
assert not self.page.web, "get_last_known_position is not supported on web"
|
|
101
|
-
r = await self._invoke_method_async(
|
|
109
|
+
r = await self._invoke_method_async(
|
|
110
|
+
"get_last_known_position",
|
|
111
|
+
timeout=timeout,
|
|
112
|
+
)
|
|
102
113
|
return GeolocatorPosition(**r)
|
|
103
114
|
|
|
104
115
|
async def get_permission_status_async(
|
|
@@ -109,12 +120,17 @@ class Geolocator(ft.Service):
|
|
|
109
120
|
|
|
110
121
|
Args:
|
|
111
122
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
123
|
+
|
|
112
124
|
Returns:
|
|
113
125
|
The status of the permission.
|
|
126
|
+
|
|
114
127
|
Raises:
|
|
115
128
|
TimeoutError: If the request times out.
|
|
116
129
|
"""
|
|
117
|
-
r = await self._invoke_method_async(
|
|
130
|
+
r = await self._invoke_method_async(
|
|
131
|
+
"get_permission_status",
|
|
132
|
+
timeout=timeout,
|
|
133
|
+
)
|
|
118
134
|
return GeolocatorPermissionStatus(r)
|
|
119
135
|
|
|
120
136
|
async def request_permission_async(
|
|
@@ -125,12 +141,17 @@ class Geolocator(ft.Service):
|
|
|
125
141
|
|
|
126
142
|
Args:
|
|
127
143
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
144
|
+
|
|
128
145
|
Returns:
|
|
129
146
|
The status of the permission request.
|
|
147
|
+
|
|
130
148
|
Raises:
|
|
131
149
|
TimeoutError: If the request times out.
|
|
132
150
|
"""
|
|
133
|
-
r = await self._invoke_method_async(
|
|
151
|
+
r = await self._invoke_method_async(
|
|
152
|
+
"request_permission",
|
|
153
|
+
timeout=timeout,
|
|
154
|
+
)
|
|
134
155
|
return GeolocatorPermissionStatus(r)
|
|
135
156
|
|
|
136
157
|
async def is_location_service_enabled_async(self, timeout: float = 10) -> bool:
|
|
@@ -139,8 +160,10 @@ class Geolocator(ft.Service):
|
|
|
139
160
|
|
|
140
161
|
Args:
|
|
141
162
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
163
|
+
|
|
142
164
|
Returns:
|
|
143
165
|
`True` if location service is enabled, `False` otherwise.
|
|
166
|
+
|
|
144
167
|
Raises:
|
|
145
168
|
TimeoutError: If the request times out.
|
|
146
169
|
"""
|
|
@@ -157,14 +180,19 @@ class Geolocator(ft.Service):
|
|
|
157
180
|
|
|
158
181
|
Args:
|
|
159
182
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
183
|
+
|
|
160
184
|
Returns:
|
|
161
185
|
`True` if the app's settings were opened successfully, `False` otherwise.
|
|
186
|
+
|
|
162
187
|
Raises:
|
|
163
188
|
AssertionError: If invoked on a web platform.
|
|
164
189
|
TimeoutError: If the request times out.
|
|
165
190
|
"""
|
|
166
191
|
assert not self.page.web, "open_app_settings is not supported on web"
|
|
167
|
-
return await self._invoke_method_async(
|
|
192
|
+
return await self._invoke_method_async(
|
|
193
|
+
"open_app_settings",
|
|
194
|
+
timeout=timeout,
|
|
195
|
+
)
|
|
168
196
|
|
|
169
197
|
def open_location_settings(self, timeout: float = 10):
|
|
170
198
|
"""
|
|
@@ -175,8 +203,10 @@ class Geolocator(ft.Service):
|
|
|
175
203
|
|
|
176
204
|
Args:
|
|
177
205
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
206
|
+
|
|
178
207
|
Returns:
|
|
179
208
|
`True` if the device's settings were opened successfully, `False` otherwise.
|
|
209
|
+
|
|
180
210
|
Raises:
|
|
181
211
|
AssertionError: If invoked on a web platform.
|
|
182
212
|
TimeoutError: If the request times out.
|
|
@@ -192,14 +222,19 @@ class Geolocator(ft.Service):
|
|
|
192
222
|
|
|
193
223
|
Args:
|
|
194
224
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
225
|
+
|
|
195
226
|
Returns:
|
|
196
227
|
`True` if the device's settings were opened successfully, `False` otherwise.
|
|
228
|
+
|
|
197
229
|
Raises:
|
|
198
230
|
AssertionError: If invoked on a web platform.
|
|
199
231
|
TimeoutError: If the request times out.
|
|
200
232
|
"""
|
|
201
233
|
assert not self.page.web, "open_location_settings is not supported on web"
|
|
202
|
-
await self._invoke_method_async(
|
|
234
|
+
await self._invoke_method_async(
|
|
235
|
+
"open_location_settings",
|
|
236
|
+
timeout=timeout,
|
|
237
|
+
)
|
|
203
238
|
|
|
204
239
|
async def distance_between_async(
|
|
205
240
|
self,
|
|
@@ -221,8 +256,10 @@ class Geolocator(ft.Service):
|
|
|
221
256
|
end_latitude: The latitude of the ending point, in degrees.
|
|
222
257
|
end_longitude: The longitude of the ending point, in degrees.
|
|
223
258
|
timeout: The maximum amount of time (in seconds) to wait for a response.
|
|
259
|
+
|
|
224
260
|
Returns:
|
|
225
261
|
The distance between the coordinates in meters.
|
|
262
|
+
|
|
226
263
|
Raises:
|
|
227
264
|
TimeoutError: If the request times out.
|
|
228
265
|
"""
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from dataclasses import dataclass, field
|
|
3
3
|
from enum import Enum
|
|
4
|
-
from typing import Optional
|
|
4
|
+
from typing import TYPE_CHECKING, Optional
|
|
5
5
|
|
|
6
6
|
import flet as ft
|
|
7
7
|
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .geolocator import Geolocator # noqa
|
|
10
|
+
|
|
8
11
|
__all__ = [
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"GeolocatorIosActivityType",
|
|
12
|
-
"GeolocatorPosition",
|
|
12
|
+
"ForegroundNotificationConfiguration",
|
|
13
|
+
"GeolocatorAndroidConfiguration",
|
|
13
14
|
"GeolocatorConfiguration",
|
|
14
|
-
"
|
|
15
|
+
"GeolocatorIosActivityType",
|
|
15
16
|
"GeolocatorIosConfiguration",
|
|
16
|
-
"
|
|
17
|
+
"GeolocatorPermissionStatus",
|
|
18
|
+
"GeolocatorPosition",
|
|
19
|
+
"GeolocatorPositionAccuracy",
|
|
17
20
|
"GeolocatorPositionChangeEvent",
|
|
18
|
-
"
|
|
21
|
+
"GeolocatorWebConfiguration",
|
|
19
22
|
]
|
|
20
23
|
|
|
21
24
|
|
|
@@ -89,7 +92,7 @@ class GeolocatorPermissionStatus(Enum):
|
|
|
89
92
|
|
|
90
93
|
DENIED = "denied"
|
|
91
94
|
"""
|
|
92
|
-
Permission to access the device's location is denied.
|
|
95
|
+
Permission to access the device's location is denied.
|
|
93
96
|
|
|
94
97
|
The app should try to request permission using the [`Geolocator.request_permission`][(p).] method.
|
|
95
98
|
"""
|
|
@@ -175,7 +178,7 @@ class GeolocatorPosition:
|
|
|
175
178
|
"""
|
|
176
179
|
The speed at which the device is traveling in meters per second over ground.
|
|
177
180
|
|
|
178
|
-
The speed is not available on all devices.
|
|
181
|
+
The speed is not available on all devices.
|
|
179
182
|
In these cases the value is `0.0`.
|
|
180
183
|
"""
|
|
181
184
|
|
|
@@ -183,7 +186,7 @@ class GeolocatorPosition:
|
|
|
183
186
|
"""
|
|
184
187
|
The altitude of the device in meters.
|
|
185
188
|
|
|
186
|
-
The altitude is not available on all devices.
|
|
189
|
+
The altitude is not available on all devices.
|
|
187
190
|
In these cases the returned value is `0.0`.
|
|
188
191
|
"""
|
|
189
192
|
|
|
@@ -196,7 +199,7 @@ class GeolocatorPosition:
|
|
|
196
199
|
"""
|
|
197
200
|
The estimated horizontal accuracy of the position in meters.
|
|
198
201
|
|
|
199
|
-
The accuracy is not available on all devices.
|
|
202
|
+
The accuracy is not available on all devices.
|
|
200
203
|
In these cases the value is `0.0`.
|
|
201
204
|
"""
|
|
202
205
|
|
|
@@ -204,7 +207,7 @@ class GeolocatorPosition:
|
|
|
204
207
|
"""
|
|
205
208
|
The estimated vertical accuracy of the position in meters.
|
|
206
209
|
|
|
207
|
-
The accuracy is not available on all devices.
|
|
210
|
+
The accuracy is not available on all devices.
|
|
208
211
|
In these cases the value is `0.0`.
|
|
209
212
|
"""
|
|
210
213
|
|
|
@@ -212,7 +215,7 @@ class GeolocatorPosition:
|
|
|
212
215
|
"""
|
|
213
216
|
The heading in which the device is traveling in degrees.
|
|
214
217
|
|
|
215
|
-
The heading is not available on all devices.
|
|
218
|
+
The heading is not available on all devices.
|
|
216
219
|
In these cases the value is `0.0`.
|
|
217
220
|
"""
|
|
218
221
|
|
|
@@ -220,7 +223,7 @@ class GeolocatorPosition:
|
|
|
220
223
|
"""
|
|
221
224
|
The estimated heading accuracy of the position in degrees.
|
|
222
225
|
|
|
223
|
-
The heading accuracy is not available on all devices.
|
|
226
|
+
The heading accuracy is not available on all devices.
|
|
224
227
|
In these cases the value is `0.0`.
|
|
225
228
|
"""
|
|
226
229
|
|
|
@@ -228,7 +231,7 @@ class GeolocatorPosition:
|
|
|
228
231
|
"""
|
|
229
232
|
The estimated speed accuracy of this position, in meters per second.
|
|
230
233
|
|
|
231
|
-
The speed accuracy is not available on all devices.
|
|
234
|
+
The speed accuracy is not available on all devices.
|
|
232
235
|
In these cases the value is `0.0`.
|
|
233
236
|
"""
|
|
234
237
|
|
|
@@ -237,7 +240,7 @@ class GeolocatorPosition:
|
|
|
237
240
|
The floor specifies the floor of the building on which the device is
|
|
238
241
|
located.
|
|
239
242
|
|
|
240
|
-
The floor property is only available on iOS and only when the information is available.
|
|
243
|
+
The floor property is only available on iOS and only when the information is available.
|
|
241
244
|
In all other cases this value will be `None`.
|
|
242
245
|
"""
|
|
243
246
|
|
|
@@ -261,7 +264,7 @@ class GeolocatorConfiguration:
|
|
|
261
264
|
"""
|
|
262
265
|
The minimum distance (measured in meters) a device must move
|
|
263
266
|
horizontally before an update event is generated.
|
|
264
|
-
|
|
267
|
+
|
|
265
268
|
Set to `0` when you want to be notified of all movements.
|
|
266
269
|
"""
|
|
267
270
|
|
|
@@ -280,8 +283,8 @@ class GeolocatorWebConfiguration(GeolocatorConfiguration):
|
|
|
280
283
|
maximum_age: ft.DurationValue = field(default_factory=lambda: ft.Duration())
|
|
281
284
|
"""
|
|
282
285
|
A value indicating the maximum age of a possible cached
|
|
283
|
-
position that is acceptable to return. If set to 0, it means
|
|
284
|
-
that the device cannot use a cached position and must
|
|
286
|
+
position that is acceptable to return. If set to 0, it means
|
|
287
|
+
that the device cannot use a cached position and must
|
|
285
288
|
attempt to retrieve the real current position.
|
|
286
289
|
"""
|
|
287
290
|
|
|
@@ -300,7 +303,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
|
|
|
300
303
|
"""
|
|
301
304
|
Allows the location manager to pause updates to improve battery life
|
|
302
305
|
on the target device without sacrificing location data.
|
|
303
|
-
When this property is set to `
|
|
306
|
+
When this property is set to `True`, the location manager pauses updates
|
|
304
307
|
(and powers down the appropriate hardware) at times when the
|
|
305
308
|
location data is unlikely to change.
|
|
306
309
|
"""
|
|
@@ -309,7 +312,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
|
|
|
309
312
|
"""
|
|
310
313
|
Flag to ask the Apple OS to show the background location indicator (iOS only)
|
|
311
314
|
if app starts up and background and requests the users location.
|
|
312
|
-
|
|
315
|
+
|
|
313
316
|
For this setting to work and for the location to be retrieved the user must
|
|
314
317
|
have granted "always" permissions for location retrieval.
|
|
315
318
|
"""
|
|
@@ -317,7 +320,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
|
|
|
317
320
|
allow_background_location_updates: bool = True
|
|
318
321
|
"""
|
|
319
322
|
Flag to allow the app to receive location updates in the background (iOS only)
|
|
320
|
-
|
|
323
|
+
|
|
321
324
|
Note:
|
|
322
325
|
For this setting to work `Info.plist` should contain the following keys:
|
|
323
326
|
- UIBackgroundModes and the value should contain "location"
|
|
@@ -390,13 +393,13 @@ class GeolocatorAndroidConfiguration(GeolocatorConfiguration):
|
|
|
390
393
|
Whether altitude should be calculated as MSL (EGM2008) from NMEA messages
|
|
391
394
|
and reported as the altitude instead of using the geoidal height (WSG84). Setting
|
|
392
395
|
this property true will help to align Android altitude to that of iOS which uses MSL.
|
|
393
|
-
|
|
396
|
+
|
|
394
397
|
If the NMEA message is empty then the altitude reported will still be the standard WSG84
|
|
395
398
|
altitude from the GPS receiver.
|
|
396
|
-
|
|
399
|
+
|
|
397
400
|
MSL Altitude is only available starting from Android N and not all devices support
|
|
398
401
|
NMEA message returning $GPGGA sequences.
|
|
399
|
-
|
|
402
|
+
|
|
400
403
|
This property only works with position stream updates and has no effect when getting the
|
|
401
404
|
current position or last known position.
|
|
402
405
|
"""
|
|
@@ -405,7 +408,7 @@ class GeolocatorAndroidConfiguration(GeolocatorConfiguration):
|
|
|
405
408
|
|
|
406
409
|
|
|
407
410
|
@dataclass
|
|
408
|
-
class GeolocatorPositionChangeEvent(ft.Event[
|
|
411
|
+
class GeolocatorPositionChangeEvent(ft.Event["Geolocator"]):
|
|
409
412
|
position: GeolocatorPosition
|
|
410
413
|
"""
|
|
411
414
|
The current/new position of the device.
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/pubspec.lock
RENAMED
|
@@ -142,7 +142,7 @@ packages:
|
|
|
142
142
|
description:
|
|
143
143
|
path: "packages/flet"
|
|
144
144
|
ref: main
|
|
145
|
-
resolved-ref:
|
|
145
|
+
resolved-ref: cf8823c5d766ea7866480986aa3ee871f4091e78
|
|
146
146
|
url: "https://github.com/flet-dev/flet.git"
|
|
147
147
|
source: git
|
|
148
148
|
version: "0.70.0"
|
|
@@ -163,10 +163,10 @@ packages:
|
|
|
163
163
|
dependency: "direct dev"
|
|
164
164
|
description:
|
|
165
165
|
name: flutter_lints
|
|
166
|
-
sha256:
|
|
166
|
+
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
|
|
167
167
|
url: "https://pub.dev"
|
|
168
168
|
source: hosted
|
|
169
|
-
version: "
|
|
169
|
+
version: "3.0.2"
|
|
170
170
|
flutter_localizations:
|
|
171
171
|
dependency: transitive
|
|
172
172
|
description: flutter
|
|
@@ -346,10 +346,10 @@ packages:
|
|
|
346
346
|
dependency: transitive
|
|
347
347
|
description:
|
|
348
348
|
name: lints
|
|
349
|
-
sha256:
|
|
349
|
+
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
|
|
350
350
|
url: "https://pub.dev"
|
|
351
351
|
source: hosted
|
|
352
|
-
version: "
|
|
352
|
+
version: "3.0.0"
|
|
353
353
|
logging:
|
|
354
354
|
dependency: transitive
|
|
355
355
|
description:
|
|
@@ -855,10 +855,10 @@ packages:
|
|
|
855
855
|
dependency: transitive
|
|
856
856
|
description:
|
|
857
857
|
name: window_manager
|
|
858
|
-
sha256: "
|
|
858
|
+
sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
|
|
859
859
|
url: "https://pub.dev"
|
|
860
860
|
source: hosted
|
|
861
|
-
version: "0.5.
|
|
861
|
+
version: "0.5.1"
|
|
862
862
|
window_to_front:
|
|
863
863
|
dependency: transitive
|
|
864
864
|
description:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flet_geolocator.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/CHANGELOG.md
RENAMED
|
File without changes
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/LICENSE
RENAMED
|
File without changes
|
{flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev45}/src/flutter/flet_geolocator/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|