【发布时间】:2023-04-03 01:58:01
【问题描述】:
Google 地图显示在屏幕上,地图样式在创建地图时更新为深色主题 (onMapCreated)
问题是样式更改时出现白色闪烁,并且由于黑色主题过渡而非常明显。 (参见视频)
return GoogleMap(
myLocationButtonEnabled: false,
zoomGesturesEnabled: false,
scrollGesturesEnabled: true,
mapType: MapType.normal,
circles: circles,
markers: markers,
initialCameraPosition: cameraPosition,
onMapCreated: (GoogleMapController controller) {
_mapController = controller;
final currentMapStyle = (_themeType == ThemeType.dark)
? _darkMapStyle
: _normalMapStyle;
_mapController.setMapStyle(currentMapStyle);
},
);
}),
【问题讨论】:
标签: ios flutter google-maps-flutter