Is there any library for Flutter (Dart) for drawing Graphs on the screen with a coordinate system? Or how would I approach doing it from scratch?
-
Did you have a look at this blog post? medium.com/dartlang/zero-to-one-with-flutter-43b13fd7b354 I don't know if there are any high level libraries yet to draw graphs, but I think this would be how you do it from scratch. – david.mihola Apr 30 '17 at 7:11
-
Thank you, I'm definately going to take a look at it! – OhMad May 1 '17 at 15:57
There is no graph drawing library for Flutter right now. The Dart UI package contains a canvas implementation. There are some examples using the class: example mentioned in comment above, part two in the series of those blog post, or this official example in the Flutter repo. The official canvas example seems outdated, not all objects are rendered within the visible part of the canvas.
Flutter issues: There is an open issue for Charting library for Flutter #9043, and a documentation issue mentions questions regarding charting as well. Based on that information it doesn't seem like the Flutter team is currently working on charting components, so it could be done as a community effort.
Update: There is now a an open source Flutter library for charting created by Google called chart_flutter. Among the examples there is a simple line chart example which might fit your needs.