This article records a performance optimization of the WebView based Flutter data visualization library: echarts_flutter .

For any widgets based use a WebView, the loading of pages is always a crucial part of performance. echarts_flutter, whose foundation is to render local pages of echarts with WebView, is no exception.

The contents to load for echarts_flutter can be divided into these parts:

  • Template HTML
  • echarts script
  • echarts…

Entronad

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store