패키지, 저장소 및 앱 카테고리 검색

graphite 표지
패키지 상세v1.2.1

graphite

간편하게 방향 그래프, 트리, 플로우차트를 그릴 수 있는 Flutter 위젯입니다. 그래프 상호작용을 만들기 위한 제스처 API가 포함되어 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.1천
좋아요
187
Pub 점수
135

패키지 설치

flutter pub add graphite

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Graphite는 앱 내에서 방향 그래프, 트리 및 흐름도를 쉽게 만들 수 있도록 도와주는 Flutter 패키지입니다. 계층적이고 네트워크 기반의 데이터를 시각화하기 위한 유연한 위젯을 제공하며, 인터랙티브한 그래프 조작을 위한 내장된 제스처 지원 기능을 갖추고 있습니다. 개발자는 노드의 모양, 연결 방식, 레이아웃 동작을 쉽게 사용자 정의할 수 있습니다. 이 패키지는 Android, iOS, 웹, 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.