有什么方法可以让正常的 map View 变得 flutter 。当用户打开应用程序时,我需要准备好 map 。我唯一看到的是 apptree 插件,但我只能在用户点击按钮后显示 map (全屏,我需要将其放入容器中)。基本上我需要的是一些 map 小部件,有吗?
最佳答案
你可以使用一些插件,比如
https://github.com/apptreesoftware/flutter_google_map_view
用于在 iOS 和 Android 上显示谷歌地图的 flutter 插件
//Create an instance variable for the mapView
var _mapView = new MapView();
//Add a method to call to show the map.
void showMap() {
_mapView.show(new MapOptions(showUserLocation: true));
}
关于google-maps - flutter 中的 map View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49340522/