Skip to content
pubscout

vyuh_node_flow

0.32.0, released 3 months ago by vyuh.tech

Flexible node-based flow editor for Flutter to build visual diagrams and workflows.

WASM-ready
$ flutter pub add vyuh_node_flow
Source repository

What it does

Provides a high-performance node-based flow editor for Flutter applications. It enables the creation of visual programming interfaces, workflow editors, interactive diagrams, and data pipelines with built-in support for pan, zoom, custom connections, and theming.

AI-written summary of version 0.32.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build a visual workflow or data pipeline editor in Flutter.
  • You require a canvas supporting nodes, ports, custom connections, and minimaps.

Skip it when

  • You only need to display basic statistical charts like line, bar, or pie charts.
  • Your application does not involve node-graph or flowchart editing interfaces.

Strengths

  • High-performance rendering optimized for smooth interactions and large graphs.
  • Comprehensive theming system and connection effects like particles and gradients.
  • Extensible via extensions like minimaps, stats overlays, and level of detail rendering.

Weaknesses

  • Niche use-case focused primarily on node-based editors and diagrams.
  • Requires managing a custom controller state specific to node graphs.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
7
import 'package:flutter/material.dart';
import 'package:vyuh_node_flow/vyuh_node_flow.dart';

class FlowEditor extends StatefulWidget {
  @override
  State<FlowEditor> createState() => _FlowEditorState();
}

class _FlowEditorState extends State<FlowEditor> {
  late final controller = NodeFlowController<String, dynamic>(
    nodes: [
      Node<String>(
        id: 'node-1',
        type: 'input',
        position: const Offset(100, 100),
        data: 'Start',
      ),
    ],
  );

  @override
  Widget build(BuildContext context) {
    return NodeFlowEditor<String, dynamic>(
      controller: controller,
      theme: NodeFlowTheme.light,
      nodeBuilder: (context, node) => Padding(
        padding: const EdgeInsets.all(16),
        child: Text(node.data),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace vyuh_node_flow.

  • directed_graph

    If you need automated layout of directed graphs rather than an interactive node editor canvas.

Works with

Packages commonly used together with vyuh_node_flow: ones it builds on, ones built on it, and its own family.