颤动:如何删除 mapbox 徽标

flutter: How to remove mapbox logo

我在我的应用程序上使用 mapbox,当显示地图时,会显示 mapbox 徽标:

如何删除徽标?

MapboxMap(
                  accessToken: MAPBOX_TOKEN,
                  initialCameraPosition: CameraPosition(
                    target: controller.center.value,
                    zoom: 8.0,
                  ),
                  onMapCreated: (ctl) => controller.mapController = ctl,

根据他们的网站

The Mapbox logo is a small image containing the stylized word "Mapbox". It typically resides on the bottom left corner of a map. While you may move the logo to a different corner of the map, we require the Mapbox logo to appear on our maps so that Mapbox and its maps get proper credit.

所以不,你不应该删除 Mapbox 标志。 Google 地图也是如此。

你不能从 mapbox 中隐藏徽标和选项按钮,但你可以做一个技巧.. 将 logoViewMargins 设置到你舒适的程度,这将隐藏屏幕上的徽标和设置按钮......它会在那里,但你看不到它

logoViewMargins: const Point<num>(-100, -100),