Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 65741b8

Browse files
committed
Google maps source formatting
1 parent 97231f0 commit 65741b8

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

packages/google_maps_flutter/google_maps_flutter/android/src/test/java/io/flutter/plugins/googlemaps/MarkersControllerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2013 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
package io.flutter.plugins.googlemaps;
26

37
import static org.mockito.ArgumentMatchers.any;

packages/google_maps_flutter/google_maps_flutter/example/lib/drag_marker.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018 The Chromium Authors. All rights reserved.
1+
// Copyright 2013 The Flutter Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

@@ -129,8 +129,12 @@ class DragMarkerBodyState extends State<DragMarkerBody> {
129129
child: Row(
130130
mainAxisSize: MainAxisSize.max,
131131
children: [
132-
markerPosition == null ? Container() : Expanded(child: Text("lat: ${markerPosition!.latitude}")),
133-
markerPosition == null ? Container() : Expanded(child: Text("lng: ${markerPosition!.longitude}")),
132+
markerPosition == null
133+
? Container()
134+
: Expanded(child: Text("lat: ${markerPosition!.latitude}")),
135+
markerPosition == null
136+
? Container()
137+
: Expanded(child: Text("lng: ${markerPosition!.longitude}")),
134138
],
135139
),
136140
),

packages/google_maps_flutter/google_maps_flutter/lib/src/controller.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ class GoogleMapController {
6969
GoogleMapsFlutterPlatform.instance
7070
.onMarkerTap(mapId: mapId)
7171
.listen((MarkerTapEvent e) => _googleMapState.onMarkerTap(e.value));
72-
GoogleMapsFlutterPlatform.instance
73-
.onMarkerDragStart(mapId: mapId)
74-
.listen((MarkerDragStartEvent e) => _googleMapState.onMarkerDragStart(e.value, e.position));
75-
GoogleMapsFlutterPlatform.instance
76-
.onMarkerDrag(mapId: mapId)
77-
.listen((MarkerDragEvent e) => _googleMapState.onMarkerDrag(e.value, e.position));
78-
GoogleMapsFlutterPlatform.instance
79-
.onMarkerDragEnd(mapId: mapId)
80-
.listen((MarkerDragEndEvent e) => _googleMapState.onMarkerDragEnd(e.value, e.position));
72+
GoogleMapsFlutterPlatform.instance.onMarkerDragStart(mapId: mapId).listen(
73+
(MarkerDragStartEvent e) =>
74+
_googleMapState.onMarkerDragStart(e.value, e.position));
75+
GoogleMapsFlutterPlatform.instance.onMarkerDrag(mapId: mapId).listen(
76+
(MarkerDragEvent e) =>
77+
_googleMapState.onMarkerDrag(e.value, e.position));
78+
GoogleMapsFlutterPlatform.instance.onMarkerDragEnd(mapId: mapId).listen(
79+
(MarkerDragEndEvent e) =>
80+
_googleMapState.onMarkerDragEnd(e.value, e.position));
8181
GoogleMapsFlutterPlatform.instance.onInfoWindowTap(mapId: mapId).listen(
8282
(InfoWindowTapEvent e) => _googleMapState.onInfoWindowTap(e.value));
8383
GoogleMapsFlutterPlatform.instance

0 commit comments

Comments
 (0)