パッケージ、リポジトリ、アプリカテゴリを検索

graphite のカバー
パッケージ詳細v1.2.1

graphite

有向グラフ、ツリー、フローチャートを簡単に描画するためのFlutterウィジェット。グラフのインタラクションを作成するためのジェスチャーAPIを含む。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2090
いいね数
187
Pub ポイント
135

パッケージをインストール

flutter pub add graphite

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Graphiteは、アプリケーション内で有向グラフ、ツリー、フローチャートを作成するのを簡素化するFlutterパッケージです。階層構造およびネットワークデータを視覚化するための柔軟なウィジェットを提供し、インタラクティブなグラフ操作に組み込みのジェスチャー対応を備えています。開発者はノードの外観、接続、レイアウト動作を簡単にカスタマイズできます。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、クロスプラットフォームのビジュアライゼーションニーズに最適です。

用途

  • 組織階層の可視化
  • インタラクティブなフローチャートを作成する
  • データ依存関係ツリーの表示
  • 図面作成ツールの構築
  • 動的ノードネットワークを用いたUIの設計

主な機能

  • 組み込みのジェスチャー操作
  • カスタマイズ可能なノードおよびエッジのスタイル
  • 階層的かつ方向性のあるレイアウトのサポート
  • クロスプラットフォーム互換性
  • Flutter ウィジェットとの簡単な統合
  • グラフ変更用の拡張可能な API

適している対象

  • 図が多く含まれるアプリケーションを開発しているUI開発者
  • 視覚的データ表現を必要とする教育または技術的なアプリケーション
  • ユーザーが編集可能なグラフ構造を必要とするツール
  • インタラクティブなデータ可視化ダッシュボードを構築するチーム

注意事項

  • 大規模なグラフに対してパフォーマンスの最適化が必要になる場合があります
  • カスタムレイアウトロジックには追加の実装が必要になる場合があります
  • 限定された組み込みアニメーション機能
  • 中程度のデータセットに最適
  • 高度な使用にはグラフ理論の概念を理解している必要があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Graphite

Actions Status

:arrow_right: :black_square_button: Flutter widget to draw direct graphs, trees, flowcharts in rectanglar manner.

Support the author :yellow_heart: :blue_heart:

The only reason why the latest release of Graphite become possible is because of Armed Forces Of Ukraine. Ukrainian defenders are those who saved the author's life last spring and currently continue fighting with absolute evil in my country. If you liked this lib and want to support future releases I would be grateful for your donations to Come Back Alive Charity which directly supports UA Army with equipment.

Thank you.

vertical custom

flowchart

label

digimon

Example of usage:

import 'package:flutter/material.dart';
import 'package:graphite/graphite.dart';

void main() => runApp(MyApp());
const list = '['
    '{"id":"A","next":[{"outcome":"B"}]},'
    '{"id":"B","next":[{"outcome":"C"},{"outcome":"D"},{"outcome":"E"}]},'
    '{"id":"C","next":[{"outcome":"F"}]},'
    '{"id":"D","next":[{"outcome":"J"}]},{"id":"E","next":[{"outcome":"J"}]},'
    '{"id":"J","next":[{"outcome":"I"}]},'
    '{"id":"I","next":[{"outcome":"H"}]},{"id":"F","next":[{"outcome":"K"}]},'
    '{"id":"K","next":[{"outcome":"L"}]},'
    '{"id":"H","next":[{"outcome":"L"}]},{"id":"L","next":[{"outcome":"P"}]},'
    '{"id":"P","next":[{"outcome":"M"},{"outcome":"N"}]},'
    '{"id":"M","next":[]},{"id":"N","next":[]}'
    ']';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Graphite',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: InteractiveViewer(
        constrained: false,
        child: DirectGraph(
          list: nodeInputFromJson(list),
          defaultCellSize: const Size(100.0, 100.0),
          cellPadding: const EdgeInsets.all(20),
          orientation: MatrixOrientation.Vertical,
       ),
      )
    );
  }
}

Features

  • Nodes and edge gesture events.
  • Ability provide graph building direction (horizontal or vertical).
  • Ability to provide custom builder to node widget.
  • Ability to add overlays.
  • Ability to add edge text or Widget labels.
  • Ability to provide custom paint builder to graph edges.
  • Ability to customize arrows and lines.

License

MIT © lempiy

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。