@@ -11,6 +11,7 @@ class PlatformMap extends StatefulWidget {
1111 this .compassEnabled = true ,
1212 this .trafficEnabled = false ,
1313 this .mapType,
14+ this .padding,
1415 this .rotateGesturesEnabled = true ,
1516 this .scrollGesturesEnabled = true ,
1617 this .zoomGesturesEnabled = true ,
@@ -92,6 +93,12 @@ class PlatformMap extends StatefulWidget {
9293 /// Called every time a [AppleMap] is long pressed.
9394 final Function onLongPress;
9495
96+ /// The padding used on the map
97+ ///
98+ /// The amount of additional space (measured in screen points) used for padding for the
99+ /// native controls.
100+ final EdgeInsets padding;
101+
95102 /// True if a "My Location" layer should be shown on the map.
96103 ///
97104 /// This layer includes a location indicator at the current device location,
@@ -153,6 +160,7 @@ class _PlatformMapState extends State<PlatformMap> {
153160 widget.initialCameraPosition.googleMapsCameraPosition,
154161 compassEnabled: widget.compassEnabled,
155162 mapType: _getGoogleMapType (),
163+ padding: widget.padding,
156164 markers: widget.markers != null
157165 ? Marker .toGoogleMapsMarkerSet (widget.markers)
158166 : widget.markers,
@@ -183,6 +191,7 @@ class _PlatformMapState extends State<PlatformMap> {
183191 widget.initialCameraPosition.appleMapsCameraPosition,
184192 compassEnabled: widget.compassEnabled,
185193 mapType: _getAppleMapType (),
194+ padding: widget.padding,
186195 annotations: widget.markers != null
187196 ? Marker .toAppleMapsAnnotationSet (widget.markers)
188197 : widget.markers,
0 commit comments