You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用AndroidMapRenderer.latest时google_maps_flutter地图卡顿求助

google_maps_flutter使用AndroidMapRenderer.latest在Release版本出现严重卡顿

使用google_maps_flutter插件时,采用官方推荐的AndroidMapRenderer.latest渲染器,地图在个人手机的Release版本中出现明显卡顿现象。原本预期地图能流畅运行,已做以下尝试:

  • 切换到AndroidMapRenderer.legacy渲染器:卡顿消失,但该方案并非官方推荐,且带来其他问题
  • 替换自定义标记为默认标记:卡顿现象依然存在

当前使用Flutter版本为3.22.0,地图相关代码如下:

GoogleMap(
                  mapType: MapType.normal,
                  initialCameraPosition: CameraPosition(
                    target: (state as MapsStateCompleted).mapMarkers.first.position,
                    zoom: 10,
                  ),
                  zoomControlsEnabled: false,
                  markers: state.mapMarkers,
                  onMapCreated: (GoogleMapController controller) {
                    if (!_controller.isCompleted) {
                      context.read<MapsCubit>().initMapController(controller);
                    }
                  },
                )

内容的提问来源于stack exchange,提问作者Karol Wiśniewski

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 18:55:54