颤振中的地图视图 [英] Map View in flutter

查看:84
本文介绍了颤振中的地图视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使普通的地图视图变得扑朔迷离.用户打开应用程序时,我需要准备地图.我唯一看到的就是那个apptree插件,但是我只能在用户点击按钮后显示地图(并且全屏显示,我需要将其放入容器中).基本上我需要一些Map Widget,有吗?

解决方案

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

Is there any way how make normal Map View in flutter. I need to have map ready when user opens the app. Only thing I saw, is that apptree plugin, but I could only make the map appear after user taps the button (and fullscreen, I need to put it into container). Basicaly what I need is some Map Widget, is there any ?

解决方案

Unfortunately this is one of the drawbacks of choosing to render own components on GPU instead of using OEM solutions, they need to bake GMaps renderer over Flutter APIs and probably will, in the meanwhile, try this implementation: https://github.com/apptreesoftware/flutter_map

这篇关于颤振中的地图视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆