Search packages, repositories and app categories

flow_graph cover
Package detailsv0.0.9

flow_graph

DAG graph on flutter.

30-day downloads
42
Likes
20
Pub points
40

Install package

flutter pub add flow_graph

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flow Graph is a Flutter package for visualizing Directed Acyclic Graphs (DAGs) in applications. It enables developers to create interactive, customizable node-and-edge diagrams ideal for workflows, data pipelines, or dependency trees. The package supports dynamic updates, drag-and-drop functionality, and responsive layouts, making it suitable for both simple and complex graph representations. Built with Dart, it integrates seamlessly into Flutter projects and leverages the framework's rendering capabilities for smooth performance. Its lightweight design focuses on clarity and usability without requiring external dependencies.

Use cases

  • Visualizing data processing pipelines
  • Displaying task dependencies in workflows
  • Creating interactive flowcharts in apps
  • Mapping out application state transitions
  • Designing diagram-based user interfaces

Key features

  • Supports DAG structure visualization
  • Interactive node manipulation
  • Customizable node and edge styling
  • Responsive layout adjustments
  • Lightweight and Flutter-native

Suitable for

  • Developers building workflow tools
  • UI designers needing diagram components
  • Applications with dependency tracking
  • Educational apps with visual logic
  • Data flow visualization dashboards

Considerations

  • Limited to DAGs (no cycles)
  • No built-in export functionality
  • Requires manual handling of complex interactions
  • Best suited for moderate graph sizes
  • No official documentation beyond GitHub examples

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.