flet-map 0.85.0.dev3__tar.gz → 0.85.1__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.
Files changed (38) hide show
  1. {flet_map-0.85.0.dev3/src/flet_map.egg-info → flet_map-0.85.1}/PKG-INFO +2 -2
  2. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/pyproject.toml +2 -2
  3. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/simple_attribution.py +7 -2
  4. {flet_map-0.85.0.dev3 → flet_map-0.85.1/src/flet_map.egg-info}/PKG-INFO +2 -2
  5. flet_map-0.85.1/src/flet_map.egg-info/requires.txt +1 -0
  6. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/simple_attribution.dart +9 -2
  7. flet_map-0.85.0.dev3/src/flet_map.egg-info/requires.txt +0 -1
  8. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/LICENSE +0 -0
  9. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/README.md +0 -0
  10. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/setup.cfg +0 -0
  11. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/__init__.py +0 -0
  12. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/circle_layer.py +0 -0
  13. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/map.py +0 -0
  14. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/map_layer.py +0 -0
  15. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/marker_layer.py +0 -0
  16. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/overlay_image_layer.py +0 -0
  17. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/polygon_layer.py +0 -0
  18. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/polyline_layer.py +0 -0
  19. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/rich_attribution.py +0 -0
  20. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/source_attribution.py +0 -0
  21. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/tile_layer.py +0 -0
  22. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map/types.py +0 -0
  23. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map.egg-info/SOURCES.txt +0 -0
  24. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map.egg-info/dependency_links.txt +0 -0
  25. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flet_map.egg-info/top_level.txt +0 -0
  26. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/flet_map.dart +0 -0
  27. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/circle_layer.dart +0 -0
  28. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/extension.dart +0 -0
  29. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/map.dart +0 -0
  30. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/marker_layer.dart +0 -0
  31. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/overlay_image_layer.dart +0 -0
  32. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/polygon_layer.dart +0 -0
  33. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/polyline_layer.dart +0 -0
  34. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/rich_attribution.dart +0 -0
  35. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/tile_layer.dart +0 -0
  36. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/utils/attribution_alignment.dart +0 -0
  37. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/lib/src/utils/map.dart +0 -0
  38. {flet_map-0.85.0.dev3 → flet_map-0.85.1}/src/flutter/flet_map/pubspec.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-map
3
- Version: 0.85.0.dev3
3
+ Version: 0.85.1
4
4
  Summary: Interactive map controls for 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.85.0.dev3
14
+ Requires-Dist: flet==0.85.1
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-map
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "flet-map"
3
- version = "0.85.0.dev3"
3
+ version = "0.85.1"
4
4
  description = "Interactive map controls for Flet apps."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
7
7
  license = "Apache-2.0"
8
8
  requires-python = ">=3.10"
9
9
  dependencies = [
10
- "flet==0.85.0.dev3",
10
+ "flet==0.85.1",
11
11
  ]
12
12
 
13
13
  [project.urls]
@@ -1,5 +1,5 @@
1
1
  from dataclasses import field
2
- from typing import Optional, Union
2
+ from typing import Optional
3
3
 
4
4
  import flet as ft
5
5
  from flet_map.map_layer import MapLayer
@@ -13,11 +13,16 @@ class SimpleAttribution(MapLayer):
13
13
  A simple attribution layer displayed on the Map.
14
14
  """
15
15
 
16
- text: Union[str, ft.Text]
16
+ text: str
17
17
  """
18
18
  The attribution message to be displayed.
19
19
  """
20
20
 
21
+ text_style: Optional[ft.TextStyle] = None
22
+ """
23
+ The style to use for :attr:`text`.
24
+ """
25
+
21
26
  alignment: ft.Alignment = field(default_factory=lambda: ft.Alignment.BOTTOM_RIGHT)
22
27
  """
23
28
  The alignment of this attribution on the map.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-map
3
- Version: 0.85.0.dev3
3
+ Version: 0.85.1
4
4
  Summary: Interactive map controls for 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.85.0.dev3
14
+ Requires-Dist: flet==0.85.1
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-map
@@ -0,0 +1 @@
1
+ flet==0.85.1
@@ -10,12 +10,19 @@ class SimpleAttributionControl extends StatelessWidget {
10
10
  @override
11
11
  Widget build(BuildContext context) {
12
12
  debugPrint("SimpleAttributionControl build: ${control.id}");
13
- var text = control.buildTextOrWidget("text");
13
+ final text = control.getString("text");
14
+
15
+ if (text == null) {
16
+ return const ErrorControl("SimpleAttribution.text must be provided");
17
+ }
14
18
 
15
19
  return BaseControl(
16
20
  control: control,
17
21
  child: SimpleAttributionWidget(
18
- source: text is Text ? text : const Text("Placeholder Text"),
22
+ source: Text(
23
+ text,
24
+ style: control.getTextStyle("text_style", Theme.of(context)),
25
+ ),
19
26
  onTap: () => control.triggerEvent("click"),
20
27
  backgroundColor: control.getColor(
21
28
  "bgcolor", context, Theme.of(context).colorScheme.surface)!,
@@ -1 +0,0 @@
1
- flet==0.85.0.dev3
File without changes
File without changes
File without changes