v0.0.9flow_graph
Flutter에서의 DAG 그래프
20좋아요 2530일 다운로드40Pub 점수
플랫폼 정보 없음
플러터에서의 흐름 그래프 뷰
{"sdk":"flutter"}^1.15.0^2.0.0^1.1.0{"sdk":"flutter"}^1.0.4아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
https://tva1.sinaimg.cn/large/008i3skNgy1gz2lx8ljszj30qs0atdfy.jpg
dependencies:
flow_graph: ^0.0.9
https://tva1.sinaimg.cn/large/008i3skNgy1gz2tlptkq9j31050u0ta0.jpg
https://tva1.sinaimg.cn/large/008i3skNgy1gz2tpst6n1g30qo0f0wmy.gif
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();
});
},
)
];
},
)
See LICENSE