Skip to content

Commit eb20dc4

Browse files
松下 徹LuisThein
authored andcommitted
Updated google_maps_flutter version to 0.5.28+1.
1 parent 189d0f8 commit eb20dc4

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ packages:
8080
name: google_maps_flutter
8181
url: "https://pub.dartlang.org"
8282
source: hosted
83-
version: "0.5.27"
84-
google_maps_flutter_platform_interface:
83+
version: "0.5.28+1"
84+
image:
8585
dependency: transitive
8686
description:
8787
name: google_maps_flutter_platform_interface

lib/src/camera.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class CameraPosition {
8080
}
8181

8282
class CameraUpdate {
83+
CameraUpdate._(this._json);
84+
8385
static newCameraPosition(CameraPosition cameraPosition) {
8486
if (Platform.isIOS) {
8587
return appleMaps.CameraUpdate.newCameraPosition(
@@ -137,4 +139,9 @@ class CameraUpdate {
137139
return googleMaps.CameraUpdate.zoomTo(zoom);
138140
}
139141
}
142+
143+
final dynamic _json;
144+
145+
/// Converts this object to something serializable in JSON.
146+
dynamic toJson() => _json;
140147
}

lib/src/ui.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ class MinMaxZoomPreference {
3636

3737
googleMaps.MinMaxZoomPreference get googleMapsZoomPreference =>
3838
googleMaps.MinMaxZoomPreference(this.maxZoom, this.maxZoom);
39+
40+
/// Converts this object to something serializable in JSON.
41+
dynamic toJson() => <dynamic>[minZoom, maxZoom];
3942
}

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ packages:
7373
name: google_maps_flutter
7474
url: "https://pub.dartlang.org"
7575
source: hosted
76-
version: "0.5.27"
77-
google_maps_flutter_platform_interface:
76+
version: "0.5.28+1"
77+
image:
7878
dependency: transitive
7979
description:
8080
name: google_maps_flutter_platform_interface

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
flutter:
1313
sdk: flutter
1414

15-
google_maps_flutter: ^0.5.21+7
15+
google_maps_flutter: ^0.5.28+1
1616

1717
apple_maps_flutter: ^0.1.1+1
1818

0 commit comments

Comments
 (0)