首页 文章

Map 视图在颤动

提问于
浏览
0

有没有办法使普通的 Map 视图在颤动 . 当用户打开应用程序时,我需要准备好 Map . 我唯一看到的是apptree插件,但我只能在用户点击按钮后显示 Map (全屏,我需要将其放入容器中) . Basicaly我需要的是一些Map Widget,有没有?

2 回答

  • 2

    你可以使用一些插件

    https://github.com/apptreesoftware/flutter_google_map_view

    用于在iOS和Android上显示谷歌 Map 的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));
    }
    
  • 1

    不幸的是,这是选择在GPU上渲染自己的组件而不是使用OEM解决方案的缺点之一,他们需要通过Flutter API烘焙GMaps渲染器,并且可能同时尝试此实现:https://github.com/apptreesoftware/flutter_map

相关问题