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

flutter_gantt のカバー
パッケージ詳細v1.4.0

flutter_gantt

インタラクティブでカスタマイズ可能なガントチャートウィジェットをレンダリングするためのFlutterパッケージ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1140
いいね数
27
Pub ポイント
160

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

flutter pub add flutter_gantt

パッケージ概要

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

Flutter Gantt は、Flutter 向けのカスタマイズ可能でインタラクティブなゲントチャートウィジェットであり、開発者が複数のプラットフォーム上でプロジェクトのタイムライン、タスク、依存関係を視覚化できるようにします。動的なタスクスケジューリング、ドラッグアンドドロップ機能、レスポンシブデザインをサポートしており、プロジェクト管理アプリケーションに最適です。このパッケージは Flutter の UI フレームワークとシームレスに統合され、スタイルや動作に関する広範な設定オプションを提供しています。insideapp.it によってメンテナンスされており、コミュニティの貢献のために GitHub で利用可能です。

用途

  • プロジェクトタイムラインの可視化
  • アプリにおけるタスクスケジューリング
  • リソース計画ツール
  • アジャイルプロジェクトマネジメント
  • チームワークフロートラッキング

主な機能

  • インタラクティブなドラッグアンドドロップ
  • カスタマイズ可能なタスクスタイル
  • クロスプラットフォーム対応
  • 応答性レイアウト
  • タスクの依存関係レンダリング
  • 設定可能なズームとスクロール

適している対象

  • プロジェクト管理アプリ
  • 生産性ツール
  • 開発スプリントトラッカー
  • エンタープライズ計画ソフトウェア
  • 教育プロジェクトダッシュボード

注意事項

  • 大規模なデータセットの取り扱いには注意が必要です
  • 限定された組み込みテーマサポート
  • 複雑な依存関係に対処するための追加ロジックが必要になる場合があります
  • 多数のタスクによるパフォーマンスへの影響
  • ドキュメントはさらに詳細になるべきです

元の README

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

Flutter Gantt Chart

Pub Version Pub Points License

A production-ready, fully customizable Gantt chart widget for Flutter applications.

Gantt Chart Demo


Features

  • 💓 Scrollable timeline view
  • ↔ Draggable
  • 🎈 Complete visual customization
  • 🛳 Hierarchical activities with parent/child relationships
  • 🙳 Activity custom builder
  • 👅 Built-in date utilities and calculations
  • 🚀 Optimized for performance
  • 😱 Responsive across all platforms

Installation

Add to your pubspec.yaml:

yaml dependencies: flutter_gantt: <latest-version>

Then run:

bash flutter pub get


Quick Start

import 'package:flutter_gantt/flutter_gantt.dart';

Gantt(
  theme: GanttTheme.of(context),
  activitiesAsync: (startDate, endDate, activity) async => _activities,
  holidaysAsync: (startDate, endDate, holidays) async _holidays,
  onActivityChanged: (activity, start, end) {
    if (start != null && end != null) {
      debugPrint('$activity was moved (Event on widget)');
    } else if (start != null) {
      debugPrint(
        '$activity start was moved (Event on widget)',
      );
    } else if (end != null) {
      debugPrint('$activity end was moved (Event on widget)');
    }
  },
),

Documentation

Core Components
Gantt Widget

The main chart container with these key properties:

Property Type Description
startDate DateTime Initial visible date
activities List Activities to display
holidays List Special dates to highlight
theme GanttTheme Visual customization
controller GanttController Programmatic control
showIsoWeek bool Enables the ISO week-number row
GanttActivity

Represents a task with:

GanttActivity(
  start: DateTime.now(),
  end: DateTime.now().add(Duration(days: 5)),
  title: 'Task Name',
  color: Colors.blue,
  // Optional:
  children: [/* sub-tasks */],
  onCellTap: (activity) => print('Tapped ${activity.title}'),
)

Advanced Features
Programmatic Control
final controller = GanttController(
    startDate: DateTime.now(),
    daysViews: 30,
);

// Navigate timeline
controller.next(days: 7);   // Move forward
controller.prev(days: 14);  // Move backward

// Update data
controller.setActivities(newActivities);
Custom Builders
GanttActivity(
  cellBuilder: (date) => YourCustomWidget(date),
  titleWidget: YourTitleWidget(),
)
ISO Weeks
GanttActivity(
  showIsoWeek: true,
  ...
)

Weeks


Examples

Explore complete examples in the example folder.


Contributing

We welcome contributions!


License

MIT – See LICENSE for details.

Roadmap

  • Added limitations when dragging
  • Improving documentation
  • Improving mobile usability

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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

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