flutter_graph_view
2.1.0, released 11 months ago by dudu.ltd
Widgets for graphic data structures like force-oriented diagrams in Flutter.
WASM-ready
What it does
Converts business data into graphic view data and calculates vertex layouts using force-directed algorithms and decorators. Renders graphs directly onto the canvas with customizable styles, shapes, and interactions.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display force-oriented diagrams or network graphs.
- You want to visualize relationships and data structures with physics-based vertex layouts.
Skip it when
- You need standard business charts like bar, line, or pie charts.
- You require complex non-graph map or geolocation data visualization.
Strengths
- Force-directed layout algorithms with various decorators like Hooke's and Coulomb's law.
- Customizable node and edge shapes, styles, and data panels.
Weaknesses
- Major breaking changes in 2.x API require caution when upgrading from 1.x.
- Limited graphical interactions currently implemented.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:flutter/material.dart';
import 'package:flutter_graph_view/flutter_graph_view.dart';
class GraphDemo extends StatelessWidget {
const GraphDemo({super.key});
@override
Widget build(BuildContext context) {
var data = {
'vertexes': [{'id': 'node1', 'tag': 'tag1'}],
'edges': [],
};
return FlutterGraphWidget(
data: data,
algorithm: RandomAlgorithm(),
convertor: MapConvertor(),
);
}
}Alternatives
Packages that do the same job and could replace flutter_graph_view.
- graphview
Alternative package for displaying graphs and tree structures in Flutter.
69Compare - directed_graph
Alternative package for rendering directed graphs.
81Compare
Works with
Packages commonly used together with flutter_graph_view: ones it builds on, ones built on it, and its own family.