Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
navaronbracke committed Jan 11, 2024
1 parent 5d87a92 commit 1fc8e60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
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

0 comments on commit 1fc8e60

Please sign in to comment.