graphite
1.2.1, released 2 years ago by an unverified publisher
Flutter widget to draw directed graphs, trees, and flowcharts.
WASM-ready
What it does
Graphite provides a Flutter widget for rendering directed graphs, trees, and flowcharts in a rectangular layout. It includes a gesture API for node and edge interactions, custom node builders, and edge styling options.
AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display directed graphs, trees, or flowcharts in your Flutter app.
- You require node and edge gesture interactions.
- You want to customize node widgets and edge paint paths.
Skip it when
- You need traditional data charts like line, bar, or pie charts.
- You require built-in panning and zooming wrappers directly inside the package (removed in v1.1.0).
Strengths
- Supports both horizontal and vertical graph orientations.
- Custom node builders and edge label support.
- Gesture events for nodes and edges with improved hitboxes.
Weaknesses
- Removed internal InteractiveViewer dependency, shifting scrolling and zooming responsibility to the application.
- Limited to graph, tree, and flowchart visualization.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
DirectGraph(
list: nodeInputFromJson(list),
defaultCellSize: const Size(100.0, 100.0),
cellPadding: const EdgeInsets.all(20),
orientation: MatrixOrientation.Vertical,
)Alternatives
Packages that do the same job and could replace graphite.
- advanced_graphview
Create Tree, Graph, and Topology UIs with simple setup.
46Compare - draw_graph
Widget to draw line graphs with customizable features and labels
46Compare
Works with
Packages commonly used together with graphite: ones it builds on, ones built on it, and its own family.