Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8800cc7
depend on package:web
navaronbracke Oct 27, 2023
0c9fc45
fix comment
navaronbracke Oct 27, 2023
8960e3d
update import in base file
navaronbracke Oct 27, 2023
b420f32
depend on package web in the example app
navaronbracke Oct 28, 2023
a0637f1
add utility function to create divs
navaronbracke Oct 28, 2023
636e71f
migrate overlay.dart
navaronbracke Oct 28, 2023
639fe97
migrate markers.dart
navaronbracke Oct 28, 2023
c22678e
migrate marker.dart
navaronbracke Oct 28, 2023
147e570
migrate convert.dart
navaronbracke Oct 28, 2023
5ff2982
migrate google_maps_controller.dart
navaronbracke Oct 28, 2023
c4581dd
migrate google map controller test
navaronbracke Oct 28, 2023
0fb3d67
migrate markers test
navaronbracke Oct 28, 2023
9898737
migrate another markers test
navaronbracke Oct 28, 2023
18564d2
migrate overlay_test.dart
navaronbracke Oct 28, 2023
aa9533a
migrate overlays_test.dart
navaronbracke Oct 28, 2023
1667de9
migrate shapes_test.dart
navaronbracke Oct 28, 2023
c43f31e
add missing imports
navaronbracke Oct 28, 2023
a14981c
remove space
navaronbracke Oct 28, 2023
32d66fa
switch to pkg google_maps beta
navaronbracke Jan 11, 2024
788d35a
add casts due to pkg:web 0.4.0 removing "implements JSObject" from Blob
navaronbracke Jan 11, 2024
1040103
format
navaronbracke Jan 11, 2024
edc00a8
fix event listener type
navaronbracke Jan 11, 2024
cd2b0e8
add directionality
navaronbracke Jan 23, 2024
861f294
fix version constraint for pkg:web
navaronbracke Jan 23, 2024
bb8810f
fix type error in overlay test
navaronbracke Jan 23, 2024
e578d86
fix lint warnings
navaronbracke Jan 23, 2024
638a466
fix hanging test
navaronbracke Jan 23, 2024
75db30d
use .toJS on Function directly
navaronbracke Jan 23, 2024
2c086d2
fix test
navaronbracke Jan 31, 2024
fb7f53a
bump google_maps to 7.0.0
navaronbracke Feb 8, 2024
aee9770
remove the utility in integration tests
navaronbracke Feb 14, 2024
9f2716e
assert on Uint8List for the bitmap descriptor
navaronbracke Feb 14, 2024
cb9c665
use trusted types policy to sanitize html
navaronbracke Feb 14, 2024
aa46171
fix constructor
navaronbracke Feb 14, 2024
0523daa
fix argument
navaronbracke Feb 14, 2024
e2df4b1
handle undefined trusted types policy
navaronbracke Feb 15, 2024
e358399
bump version of google_maps_flutter_web
navaronbracke Feb 19, 2024
736aec1
fix license headers
navaronbracke Feb 19, 2024
8b4d7bb
adjust trusted types binding usage
navaronbracke Feb 23, 2024
d8adca1
fix quotes in pubspec & add ignore for upcoming lint
navaronbracke Feb 27, 2024
52baeca
add JS binding for MapStyler
navaronbracke Feb 27, 2024
1951a6a
set inner html to trusted html instance
navaronbracke Feb 27, 2024
6583739
Make getTTPolicy a little bit less generic looking.
ditman Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
navaronbracke committed Feb 27, 2024
commit 1040103e77ce16122787640a75f4e7b2375fbb44
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ void main() {
controller.addMarkers(markers);

expect(controller.markers.length, 1);
final HTMLElement? content = controller.markers[const MarkerId('1')]
?.infoWindow?.content as HTMLElement?;
final HTMLElement? content = controller
.markers[const MarkerId('1')]?.infoWindow?.content as HTMLElement?;
expect(content?.innerHTML, contains('title for test'));
expect(
content?.innerHTML,
Expand All @@ -300,8 +300,8 @@ void main() {
controller.addMarkers(markers);

expect(controller.markers.length, 1);
final HTMLElement? content = controller.markers[const MarkerId('1')]
?.infoWindow?.content as HTMLElement?;
final HTMLElement? content = controller
.markers[const MarkerId('1')]?.infoWindow?.content as HTMLElement?;

content?.click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ void main() {
final gmaps.Size size = controller.gmMapType.tileSize!;
expect(size.width, TileOverlayController.logicalTileSize);
expect(size.height, TileOverlayController.logicalTileSize);
expect(controller.gmMapType.getTile!(gmaps.Point(0, 0), 0, document),
null);
expect(
controller.gmMapType.getTile!(gmaps.Point(0, 0), 0, document),
null,
);
});

testWidgets('produces image tiles', (WidgetTester tester) async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ gmaps.InfoWindowOptions? _infoWindowOptionsFromMarker(Marker marker) {
..id = 'gmaps-marker-${marker.markerId.value}-infowindow';

if (markerTitle.isNotEmpty) {
final HTMLHeadingElement title = (document.createElement('h3') as HTMLHeadingElement)
..className = 'infowindow-title'
..innerText = markerTitle;
final HTMLHeadingElement title =
(document.createElement('h3') as HTMLHeadingElement)
..className = 'infowindow-title'
..innerText = markerTitle;
container.appendChild(title);
}
if (markerSnippet.isNotEmpty) {
Expand Down