📜  转到当前位置谷歌地图颤动 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:42.242000             🧑  作者: Mango

代码示例1
Future _gotoUserCurrentLocation() async {
    final _curentPosition = _userLocationSnapshotCache.position;

    final GoogleMapController _controller = await _mapController.future;
    _controller.animateCamera(
      CameraUpdate.newCameraPosition(
        MapUtil.initialCameraPosition(position: _curentPosition),
      ),
    );
  }