Flutter - draw charts on the screen

Is there a library for Flutter (Dart) to draw graphs on the screen using a coordinate system? Or how can I do this from scratch?

+7


source to share


1 answer


There is currently no graph drawing library for Flutter. The Dart UI package contains a canvas implementation . There are several examples of using the class: the example mentioned in the comment above , the second part in a series of these blog posts , or this official example in the Flutter repository . The official canvas example seems to be outdated, not all objects are displayed in the visible part of the canvas.

Flutter problems . There is an open issue for the Flutter Plot Library # 9043 , and the documentation release also mentions plots related issues . Based on this information, it seems that the Flutter team is not currently working on charting, so it can be done as a community effort.



Update: There is now a Google-created open source Flutter library called chart_flutter . Among the examples, there is a simple example of a line chart that might suit your needs.

+13


source







All Articles