• 请不要在回答技术问题时复制粘贴 AI 生成的内容
laravel
V2EX  ›  程序员

谁写过 Flutter 插件,帮我看下这个问题 https://github.com/tennessine/flutter-baidumap

  •  
  •   laravel · Jul 20, 2019 · 2609 views
    This topic created in 2575 days ago, the information mentioned may be changed or developed.

    我是在 flutter 嵌入百度原生地图,第一次渲染百度地图没事,但当组件里状态改变重新渲染时候,就出问题了

    代码就是最小的重现代码,点击 test 几次就可以看到效果,我是在 android 9 下测试,存在这个问题。

    这个问题我已经搜了好几天了,就是找不到相似的问题,求大神帮忙解决。

    https://wx4.sinaimg.cn/mw690/006DYrbFly1g563kpr2agj30u01o0n16.jpg 正常

    https://wx1.sinaimg.cn/mw690/006DYrbFly1g563kq5n93j30u01o042j.jpg 不正常

    Supplement 2  ·  Jul 20, 2019
    我感觉,只要找到一个方法可以让 Native View 不重新 build 就可以了,但是找不到
    3 replies    2019-07-22 14:39:36 +08:00
    lear7
        1
    lear7  
       Jul 20, 2019 via iPhone
    两个图打不开
    laravel
        2
    laravel  
    OP
       Jul 20, 2019
    laravel
        3
    laravel  
    OP
       Jul 22, 2019
    找到地方了,就是 getView 方法里出问题了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4282 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.