flet-map 1.0.4__tar.gz → 1.1.0.dev1__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.
- {flet_map-1.0.4/src/flet_map.egg-info → flet_map-1.1.0.dev1}/PKG-INFO +2 -2
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/pyproject.toml +2 -2
- {flet_map-1.0.4 → flet_map-1.1.0.dev1/src/flet_map.egg-info}/PKG-INFO +2 -2
- flet_map-1.1.0.dev1/src/flet_map.egg-info/requires.txt +1 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/circle_layer.dart +0 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/extension.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/map.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/marker_layer.dart +0 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/overlay_image_layer.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/polygon_layer.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/polyline_layer.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/rich_attribution.dart +34 -2
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/simple_attribution.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/tile_layer.dart +0 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/utils/map.dart +1 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/pubspec.yaml +2 -1
- flet_map-1.0.4/src/flet_map.egg-info/requires.txt +0 -1
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/LICENSE +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/README.md +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/setup.cfg +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/__init__.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/circle_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/map.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/map_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/marker_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/overlay_image_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/polygon_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/polyline_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/rich_attribution.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/simple_attribution.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/source_attribution.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/tile_layer.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map/types.py +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map.egg-info/SOURCES.txt +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map.egg-info/dependency_links.txt +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flet_map.egg-info/top_level.txt +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/flet_map.dart +0 -0
- {flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/utils/attribution_alignment.dart +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-map
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.1.0.dev1
|
|
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==1.0.
|
|
14
|
+
Requires-Dist: flet==1.1.0.dev1
|
|
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 = "1.0.
|
|
3
|
+
version = "1.1.0.dev1"
|
|
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==1.0.
|
|
10
|
+
"flet==1.1.0.dev1",
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
[project.urls]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-map
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.1.0.dev1
|
|
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==1.0.
|
|
14
|
+
Requires-Dist: flet==1.1.0.dev1
|
|
15
15
|
Dynamic: license-file
|
|
16
16
|
|
|
17
17
|
# flet-map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
flet==1.1.0.dev1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'package:flet/flet.dart';
|
|
2
|
-
import 'package:
|
|
2
|
+
import 'package:material_ui/material_ui.dart';
|
|
3
3
|
import 'package:flutter_map/flutter_map.dart';
|
|
4
4
|
|
|
5
5
|
import 'utils/attribution_alignment.dart';
|
|
@@ -44,11 +44,16 @@ class _RichAttributionControlState extends State<RichAttributionControl>
|
|
|
44
44
|
.nonNulls
|
|
45
45
|
.toList();
|
|
46
46
|
|
|
47
|
+
var permanentHeight = widget.control.getDouble("permanent_height", 24.0)!;
|
|
48
|
+
|
|
47
49
|
return BaseControl(
|
|
48
50
|
control: widget.control,
|
|
49
51
|
child: RichAttributionWidget(
|
|
50
52
|
attributions: attributions,
|
|
51
|
-
permanentHeight:
|
|
53
|
+
permanentHeight: permanentHeight,
|
|
54
|
+
openButton: (context, open) => _openButton(open, permanentHeight),
|
|
55
|
+
closeButton: (context, close) =>
|
|
56
|
+
_closeButton(context, close, permanentHeight),
|
|
52
57
|
popupBackgroundColor: widget.control.getColor(
|
|
53
58
|
"popup_bgcolor", context, Theme.of(context).colorScheme.surface),
|
|
54
59
|
showFlutterMapAttribution:
|
|
@@ -61,4 +66,31 @@ class _RichAttributionControlState extends State<RichAttributionControl>
|
|
|
61
66
|
.getDuration("popup_initial_display_duration", Duration.zero)!),
|
|
62
67
|
);
|
|
63
68
|
}
|
|
69
|
+
|
|
70
|
+
/// The button that opens the attributions popup.
|
|
71
|
+
///
|
|
72
|
+
/// Same as `RichAttributionWidget`'s default, which flutter_map builds from
|
|
73
|
+
/// the Flutter SDK's Material library rather than `material_ui`.
|
|
74
|
+
Widget _openButton(VoidCallback open, double size) {
|
|
75
|
+
return IconButton(
|
|
76
|
+
onPressed: open,
|
|
77
|
+
tooltip: 'Attributions',
|
|
78
|
+
icon: Icon(Icons.info_outlined, color: Colors.black, size: size),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/// The button that closes the attributions popup.
|
|
83
|
+
///
|
|
84
|
+
/// Same as `RichAttributionWidget`'s default, but colored from the app's
|
|
85
|
+
/// theme: the default reads the SDK's Material theme, which apps rendered
|
|
86
|
+
/// with `material_ui` don't provide, so it fell back to a dark icon on dark
|
|
87
|
+
/// popups.
|
|
88
|
+
Widget _closeButton(BuildContext context, VoidCallback close, double size) {
|
|
89
|
+
return IconButton(
|
|
90
|
+
onPressed: close,
|
|
91
|
+
icon: Icon(Icons.cancel_outlined,
|
|
92
|
+
color: Theme.of(context).textTheme.titleSmall?.color ?? Colors.black,
|
|
93
|
+
size: size),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
64
96
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'package:flet/flet.dart';
|
|
2
2
|
import 'package:flutter/gestures.dart';
|
|
3
|
-
import 'package:
|
|
3
|
+
import 'package:material_ui/material_ui.dart';
|
|
4
4
|
import 'package:flutter/services.dart';
|
|
5
5
|
import 'package:flutter_map/flutter_map.dart';
|
|
6
6
|
import 'package:latlong2/latlong.dart';
|
|
@@ -5,7 +5,7 @@ publish_to: none
|
|
|
5
5
|
|
|
6
6
|
environment:
|
|
7
7
|
sdk: '>=3.2.3 <4.0.0'
|
|
8
|
-
flutter: ">=
|
|
8
|
+
flutter: ">=3.47.0"
|
|
9
9
|
|
|
10
10
|
dependencies:
|
|
11
11
|
flutter:
|
|
@@ -16,6 +16,7 @@ dependencies:
|
|
|
16
16
|
flutter_map_animations: 0.10.0
|
|
17
17
|
latlong2: 0.9.1
|
|
18
18
|
|
|
19
|
+
material_ui: ^1.6.0
|
|
19
20
|
flet:
|
|
20
21
|
path: ../../../../../../../packages/flet
|
|
21
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
flet==1.0.4
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_map-1.0.4 → flet_map-1.1.0.dev1}/src/flutter/flet_map/lib/src/utils/attribution_alignment.dart
RENAMED
|
File without changes
|