Pub Version CI Deploy to Github Pages License: MIT style: very good analysis GitHub Repo stars

Web Demo


A highly customizable library for displaying force-directed graphs in Flutter.

This library is primarily designed to display graphs using force-directed layouts, but it can be used for other purposes as well with the implementation of a custom layout algorithm. Currently nodes can't be dragged by gestures. The entire canvas can be dragged and zoomed using underlying InteractiveViewer widget.


For example usage see Example

Fruchterman-Reingold Algorithm scaling

Fruchterman-Reingold's got a time complexity of O(N^2 + E) per loop where N is the number of nodes and E is the number of edges. Simply put, it can get slow pretty fast if you have a large graph.