Giter Club home page Giter Club logo

Comments (7)

entronad avatar entronad commented on May 18, 2024

@fengbo102
你操作系统是哪个版本?
在较新的机型上(比如iPhone 11)上是否有问题

from flutter_echarts.

fengbo102 avatar fengbo102 commented on May 18, 2024

@entronad
操作系统: ios 10.3.1
在较新的机型上(比如iPhone 11)没有问题
专门下载了10.3的模拟器去测试iphone6, iphone6 plus, iphone6s, iphone7都有这个问题。

from flutter_echarts.

entronad avatar entronad commented on May 18, 2024

@fengbo102

较老的机型上找不到 chart.setOption 应该是脚本来不及加载完引起的。
按照 webview_flutter 的说明 onPageFinished 会在所有脚本加载完之后才执行,
但这里可能因为老的机器无法在合适的时间内加载完脚本提前触发 onPageFinished ,
也可能与 webview_flutter 在 ios 上现存的一些问题有关 flutter/flutter#47677

目前 ios 端的 webview_flutter 在加载和触发 onPageFinished 的行为上比较诡异,没有特别好的解决方案,我会密切关注它的改进。

from flutter_echarts.

fengbo102 avatar fengbo102 commented on May 18, 2024

@entronad 问题找到了, const chart = echarts.init(document.getElementById('chart'), null);
将const改为var就可以了, ios旧版本对const支持不太好。

from flutter_echarts.

entronad avatar entronad commented on May 18, 2024

@fengbo102

将这个改动加入了,请更新到 1.2.1 试一下是否可行。

from flutter_echarts.

fengbo102 avatar fengbo102 commented on May 18, 2024

@entronad 1.2.1 在ios10.3.1上测试通过;ios版本也测试没问题

from flutter_echarts.

entronad avatar entronad commented on May 18, 2024

@fengbo102
谢谢!

from flutter_echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.