搜索插件、代码仓与 APP 分类

GitHub 代码仓youngchan1988/flow_graph

flow_graph

Flutter 上的流程图视图

flow_graph 项目封面
星标
38
复刻
14
最近推送(UTC)
2023年9月26日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

Features

  • Support draggable node;
  • Support delete node & edge;
  • Support horizontal & vertical layout;

Getting started

dependencies:
    flow_graph: ^0.0.9

Screen shot

Usage

Flow graph:

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:

DraggableFlowGraphView<FamilyNode>(
	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

Chan Young GitHub avatar
GitHub 作者

Chan Young ↗

Shanghai NEW CORE Technology Co. Ltd.Shanghai官方网站 ↗
语言DartC++CMakeHTMLCSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 6 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗