@@ -23,7 +23,7 @@ class AppleMap extends StatefulWidget {
23
23
this .compassEnabled = true ,
24
24
this .trafficEnabled = false ,
25
25
this .mapType = MapType .standard,
26
- this .mapStyle = MapStyle .system,
26
+ this .colorScheme = MapColorScheme .system,
27
27
this .minMaxZoomPreference = MinMaxZoomPreference .unbounded,
28
28
this .trackingMode = TrackingMode .none,
29
29
this .rotateGesturesEnabled = true ,
@@ -60,8 +60,8 @@ class AppleMap extends StatefulWidget {
60
60
/// Type of map tiles to be rendered.
61
61
final MapType mapType;
62
62
63
- /// TODO
64
- final MapStyle mapStyle ;
63
+ /// Color scheme for the standard map to use.
64
+ final MapColorScheme colorScheme ;
65
65
66
66
/// The mode used to track the user location.
67
67
final TrackingMode trackingMode;
@@ -336,7 +336,7 @@ class _AppleMapOptions {
336
336
this .compassEnabled,
337
337
this .trafficEnabled,
338
338
this .mapType,
339
- this .mapStyle ,
339
+ this .colorScheme ,
340
340
this .minMaxZoomPreference,
341
341
this .rotateGesturesEnabled,
342
342
this .scrollGesturesEnabled,
@@ -354,7 +354,7 @@ class _AppleMapOptions {
354
354
compassEnabled: map.compassEnabled,
355
355
trafficEnabled: map.trafficEnabled,
356
356
mapType: map.mapType,
357
- mapStyle : map.mapStyle ,
357
+ colorScheme : map.colorScheme ,
358
358
minMaxZoomPreference: map.minMaxZoomPreference,
359
359
rotateGesturesEnabled: map.rotateGesturesEnabled,
360
360
scrollGesturesEnabled: map.scrollGesturesEnabled,
@@ -374,7 +374,7 @@ class _AppleMapOptions {
374
374
375
375
final MapType ? mapType;
376
376
377
- final MapStyle ? mapStyle ;
377
+ final MapColorScheme ? colorScheme ;
378
378
379
379
final MinMaxZoomPreference ? minMaxZoomPreference;
380
380
@@ -408,7 +408,7 @@ class _AppleMapOptions {
408
408
addIfNonNull ('compassEnabled' , compassEnabled);
409
409
addIfNonNull ('trafficEnabled' , trafficEnabled);
410
410
addIfNonNull ('mapType' , mapType? .index);
411
- addIfNonNull ('mapStyle ' , mapStyle ? .index);
411
+ addIfNonNull ('colorScheme ' , colorScheme ? .index);
412
412
addIfNonNull ('minMaxZoomPreference' , minMaxZoomPreference? ._toJson ());
413
413
addIfNonNull ('rotateGesturesEnabled' , rotateGesturesEnabled);
414
414
addIfNonNull ('scrollGesturesEnabled' , scrollGesturesEnabled);
0 commit comments