@@ -23,7 +23,7 @@ class AppleMap extends StatefulWidget {
2323 this .compassEnabled = true ,
2424 this .trafficEnabled = false ,
2525 this .mapType = MapType .standard,
26- this .mapStyle = MapStyle .system,
26+ this .colorScheme = MapColorScheme .system,
2727 this .minMaxZoomPreference = MinMaxZoomPreference .unbounded,
2828 this .trackingMode = TrackingMode .none,
2929 this .rotateGesturesEnabled = true ,
@@ -60,8 +60,8 @@ class AppleMap extends StatefulWidget {
6060 /// Type of map tiles to be rendered.
6161 final MapType mapType;
6262
63- /// TODO
64- final MapStyle mapStyle ;
63+ /// Color scheme for the standard map to use.
64+ final MapColorScheme colorScheme ;
6565
6666 /// The mode used to track the user location.
6767 final TrackingMode trackingMode;
@@ -336,7 +336,7 @@ class _AppleMapOptions {
336336 this .compassEnabled,
337337 this .trafficEnabled,
338338 this .mapType,
339- this .mapStyle ,
339+ this .colorScheme ,
340340 this .minMaxZoomPreference,
341341 this .rotateGesturesEnabled,
342342 this .scrollGesturesEnabled,
@@ -354,7 +354,7 @@ class _AppleMapOptions {
354354 compassEnabled: map.compassEnabled,
355355 trafficEnabled: map.trafficEnabled,
356356 mapType: map.mapType,
357- mapStyle : map.mapStyle ,
357+ colorScheme : map.colorScheme ,
358358 minMaxZoomPreference: map.minMaxZoomPreference,
359359 rotateGesturesEnabled: map.rotateGesturesEnabled,
360360 scrollGesturesEnabled: map.scrollGesturesEnabled,
@@ -374,7 +374,7 @@ class _AppleMapOptions {
374374
375375 final MapType ? mapType;
376376
377- final MapStyle ? mapStyle ;
377+ final MapColorScheme ? colorScheme ;
378378
379379 final MinMaxZoomPreference ? minMaxZoomPreference;
380380
@@ -408,7 +408,7 @@ class _AppleMapOptions {
408408 addIfNonNull ('compassEnabled' , compassEnabled);
409409 addIfNonNull ('trafficEnabled' , trafficEnabled);
410410 addIfNonNull ('mapType' , mapType? .index);
411- addIfNonNull ('mapStyle ' , mapStyle ? .index);
411+ addIfNonNull ('colorScheme ' , colorScheme ? .index);
412412 addIfNonNull ('minMaxZoomPreference' , minMaxZoomPreference? ._toJson ());
413413 addIfNonNull ('rotateGesturesEnabled' , rotateGesturesEnabled);
414414 addIfNonNull ('scrollGesturesEnabled' , scrollGesturesEnabled);
0 commit comments