@@ -11,6 +11,7 @@ class PlatformMap extends StatefulWidget {
11
11
this .compassEnabled = true ,
12
12
this .trafficEnabled = false ,
13
13
this .mapType,
14
+ this .padding,
14
15
this .rotateGesturesEnabled = true ,
15
16
this .scrollGesturesEnabled = true ,
16
17
this .zoomGesturesEnabled = true ,
@@ -92,6 +93,12 @@ class PlatformMap extends StatefulWidget {
92
93
/// Called every time a [AppleMap] is long pressed.
93
94
final Function onLongPress;
94
95
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
+
95
102
/// True if a "My Location" layer should be shown on the map.
96
103
///
97
104
/// This layer includes a location indicator at the current device location,
@@ -153,6 +160,7 @@ class _PlatformMapState extends State<PlatformMap> {
153
160
widget.initialCameraPosition.googleMapsCameraPosition,
154
161
compassEnabled: widget.compassEnabled,
155
162
mapType: _getGoogleMapType (),
163
+ padding: widget.padding,
156
164
markers: widget.markers != null
157
165
? Marker .toGoogleMapsMarkerSet (widget.markers)
158
166
: widget.markers,
@@ -183,6 +191,7 @@ class _PlatformMapState extends State<PlatformMap> {
183
191
widget.initialCameraPosition.appleMapsCameraPosition,
184
192
compassEnabled: widget.compassEnabled,
185
193
mapType: _getAppleMapType (),
194
+ padding: widget.padding,
186
195
annotations: widget.markers != null
187
196
? Marker .toAppleMapsAnnotationSet (widget.markers)
188
197
: widget.markers,
0 commit comments