# flutter_graph_view
**Repository Path**: graph-cn/flutter_graph_view
## Basic Information
- **Project Name**: flutter_graph_view
- **Description**: 一个可以在Flutter终端展示图数据结构的开源项目。
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 3
- **Forks**: 0
- **Created**: 2023-01-17
- **Last Updated**: 2026-01-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Flutter Graph View
Widgets for beautiful graphic data structures, such as force-oriented diagrams.



https://github.com/graph-cn/flutter_graph_view/assets/15630211/a035cd7d-bdac-4ef6-8abf-74594e9d699b
## Features
- [x] Data converter: convert business data into graphic view data.
- [x] Algorithm: calculate vertex layout.
- [x] Force directed algorithm.
- [x] Random algorithm (In example folder).
- [x] Support algorithm decorator.
- [x] Breathe decorator (optional).
- [x] Provide decorators that follow Hooke's Law for related nodes
- [x] Provide a decorator for Hooke's Law from the center outward for all nodes
- [x] Provide mutually exclusive Coulomb's law decorators for subgraph root nodes
- [x] Hooke's Law decorator that provides border buffering collisions for all nodes
- [x] Add a counter decorator in the figure to convert node forces into motion
- [x] Data panel embedding.
- [x] Style configuration.
- [ ] More graphical interactions.
## Getting started
```sh
flutter pub add flutter_graph_view
```
## Usage
```dart
// Copyright (c) 2023- All flutter_graph_view authors. All rights reserved.
//
// This source code is licensed under Apache 2.0 License.
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_graph_view/flutter_graph_view.dart';
class DecoratorDemo extends StatelessWidget {
const DecoratorDemo({super.key});
@override
Widget build(BuildContext context) {
var vertexes =