# 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**: 1
- **Forks**: 0
- **Created**: 2023-01-17
- **Last Updated**: 2025-06-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Flutter Graph View
致力于图数据的可视化组件



## 特性
- [x] 数据转换器:用于将业务数据转换成组件可以接收的数据格式
- [x] 节点定位:用于将节点合理排布在界面上
- [x] 随机定位法 (example 中已给出样例).
- [x] 力导向图法,雏形已实现
- [x] 支持定位算法装饰器
- [x] 提供呼吸效果的自定义装饰器(可选特性)
- [x] 为相关连节点提供遵循胡克定律的装饰器
- [x] 为所有节点提供由中心向外的胡克定律的装饰器
- [x] 为子图根节点提供互斥的的库伦定律装饰器
- [x] 为所有节点提供边缘缓冲碰撞的胡克定律装饰器
- [x] 在图中追加一个计数器装饰器,用于将节点受力转换成运动
- [x] 提供数据面板的嵌入
- [x] 提供样式配置
- [ ] 提供更多交互能力
## 如何开始
```sh
flutter pub add flutter_graph_view
```
## 用法
```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 =