# flow_graph **Repository Path**: newcoretech/flow_graph ## Basic Information - **Project Name**: flow_graph - **Description**: 基于Flutter实现的流程图布局 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-12-07 - **Last Updated**: 2023-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![](https://tva1.sinaimg.cn/large/008i3skNgy1gz2lx8ljszj30qs0atdfy.jpg) ## Features - Support draggable node; - Support delete node & edge; - Support horizontal & vertical layout; ## Getting started ```yaml dependencies: flow_graph: ^0.0.9 ``` ## Screen shot ![](https://tva1.sinaimg.cn/large/008i3skNgy1gz2tlptkq9j31050u0ta0.jpg) ![](https://tva1.sinaimg.cn/large/008i3skNgy1gz2tpst6n1g30qo0f0wmy.gif) ## Usage Flow graph: ```dart FlowGraphView( root: root, direction: _direction, centerLayout: _centerLayout, builder: (context, node) { return Container( color: Colors.white60, padding: const EdgeInsets.all(16), child: Text( node.data.toString(), style: const TextStyle(color: Colors.black87, fontSize: 16), ), ); }, ) ``` Draggable flow graph: ```dart DraggableFlowGraphView( root: root, direction: _direction, centerLayout: _centerLayout, willConnect: (node) => true, willAccept: (node) => true, builder: (context, node) { return Container( color: Colors.white60, padding: const EdgeInsets.all(16), child: Text( (node.data as FamilyNode).name, style: const TextStyle(color: Colors.black87, fontSize: 16), ), ); }, nodeSecondaryMenuItems: (node) { return [ PopupMenuItem( child: Text('Delete'), onTap: () { setter(() { node.deleteSelf(); }); }, ) ]; }, ) ``` # License See [LICENSE](LICENSE)