我已经插入下面pubspec.yaml
库
google_maps_flutter:
git:
url: git://github.com/flutter/plugins
path: packages/google_maps_flutter
但是,我得到一个错误每次
Another exception was thrown: 'file:///C:/src/flutter/.pub-cache/git/plugins-aedcc6f81843ae2da3a6ac0c8e8c4b530d1ac035/packages/google_maps_flutter/lib/src/google_map.dart': Failed assertion: line 24 pos 15: 'initialCameraPosition != null': is not true.
提前致谢。
只是使用缩写摄像机位置在谷歌地图()例如:
GoogleMap(
onMapCreated: _onMapCreated,
initialCameraPosition: CameraPosition(target: LatLng(51.5160895, -0.1294527),),
)