Skip to content

Commit 7da1b8f

Browse files
authored
Updated Google Maps Plugin (#32)
* Updated apple_maps_flutter and google_maps_flutter plugin * Passing in empty set instead of null as it seems to be required for new google maps flutter plugin
1 parent b028151 commit 7da1b8f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/platform_maps.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ class _PlatformMapState extends State<PlatformMap> {
179179
padding: widget.padding ?? EdgeInsets.zero,
180180
markers: widget.markers != null
181181
? Marker.toGoogleMapsMarkerSet(widget.markers)
182-
: widget.markers,
182+
: {},
183183
polylines: widget.polylines != null
184184
? Polyline.toGoogleMapsPolylines(widget.polylines)
185-
: widget.polylines,
185+
: {},
186186
polygons: widget.polygons != null
187187
? Polygon.toGoogleMapsPolygonSet(widget.polygons)
188-
: widget.polygons,
188+
: {},
189189
circles: widget.circles != null
190190
? Circle.toGoogleMapsCircleSet(widget.circles)
191-
: widget.circles,
191+
: {},
192192
gestureRecognizers: widget.gestureRecognizers,
193193
onCameraIdle: widget.onCameraIdle,
194194
myLocationButtonEnabled: widget.myLocationButtonEnabled,

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ dependencies:
1212
flutter:
1313
sdk: flutter
1414

15-
google_maps_flutter: ^0.5.28+1
15+
google_maps_flutter: ^2.0.1
1616

17-
apple_maps_flutter: ^0.1.2+5
17+
apple_maps_flutter: ^0.1.3
1818

1919
dev_dependencies:
2020
flutter_test:
21-
sdk: flutter
21+
sdk: flutter

0 commit comments

Comments
 (0)