Skip to content
pubscout

gviz

0.4.2, released a year ago by kevmoo.com

A simple utility for creating Graphviz directed graphs using an object oriented API.

WASM-ready
$ flutter pub add gviz
Source repository

What it does

Provides an object-oriented API for writing Graphviz dot files. Allows users to add nodes, edges, and graph properties to generate directed or undirected graphs.

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

Use it when

  • You need to generate Graphviz dot files programmatically.
  • You want a simple API to build text-based graph representations.

Skip it when

  • You need to render graphs visually directly inside a Flutter widget tree.
  • You require complex graph algorithms and a fully-featured graph data structure library.

Strengths

  • Simple and lightweight object-oriented API.
  • Supports both directed and undirected graphs.

Weaknesses

  • Complex graph API features were removed in v0.3.0.
  • Only generates text dot files rather than rendering them.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
final graph = Gviz()
      ..addNode('solo')
      ..addEdge('solo', 'solo');
print(graph);

Alternatives

Packages that do the same job and could replace gviz.

  • graphview

    Display data in graph structures like trees, directed graphs, and layered layouts.

  • radar_chart_plus

    A customizable radar and spider chart widget for Flutter applications.

  • material_charts

    A flutter library for creating and manage industrial standard charts

  • flutter_force_directed_graph

    Flutter Force Directed Graph is a high-performance, customizable Flutter package that helps you create force directed graph visualizations in your Flutter applications.

Works with

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