@@ -23,6 +23,7 @@ class AppleMap extends StatefulWidget {
2323 this .compassEnabled = true ,
2424 this .trafficEnabled = false ,
2525 this .mapType = MapType .standard,
26+ this .mapStyle = MapStyle .system,
2627 this .minMaxZoomPreference = MinMaxZoomPreference .unbounded,
2728 this .trackingMode = TrackingMode .none,
2829 this .rotateGesturesEnabled = true ,
@@ -59,6 +60,9 @@ class AppleMap extends StatefulWidget {
5960 /// Type of map tiles to be rendered.
6061 final MapType mapType;
6162
63+ /// TODO
64+ final MapStyle mapStyle;
65+
6266 /// The mode used to track the user location.
6367 final TrackingMode trackingMode;
6468
@@ -332,6 +336,7 @@ class _AppleMapOptions {
332336 this .compassEnabled,
333337 this .trafficEnabled,
334338 this .mapType,
339+ this .mapStyle,
335340 this .minMaxZoomPreference,
336341 this .rotateGesturesEnabled,
337342 this .scrollGesturesEnabled,
@@ -349,6 +354,7 @@ class _AppleMapOptions {
349354 compassEnabled: map.compassEnabled,
350355 trafficEnabled: map.trafficEnabled,
351356 mapType: map.mapType,
357+ mapStyle: map.mapStyle,
352358 minMaxZoomPreference: map.minMaxZoomPreference,
353359 rotateGesturesEnabled: map.rotateGesturesEnabled,
354360 scrollGesturesEnabled: map.scrollGesturesEnabled,
@@ -368,6 +374,8 @@ class _AppleMapOptions {
368374
369375 final MapType ? mapType;
370376
377+ final MapStyle ? mapStyle;
378+
371379 final MinMaxZoomPreference ? minMaxZoomPreference;
372380
373381 final bool ? rotateGesturesEnabled;
@@ -400,6 +408,7 @@ class _AppleMapOptions {
400408 addIfNonNull ('compassEnabled' , compassEnabled);
401409 addIfNonNull ('trafficEnabled' , trafficEnabled);
402410 addIfNonNull ('mapType' , mapType? .index);
411+ addIfNonNull ('mapStyle' , mapStyle? .index);
403412 addIfNonNull ('minMaxZoomPreference' , minMaxZoomPreference? ._toJson ());
404413 addIfNonNull ('rotateGesturesEnabled' , rotateGesturesEnabled);
405414 addIfNonNull ('scrollGesturesEnabled' , scrollGesturesEnabled);
0 commit comments