搜尋套件、儲存庫與 APP 分類

gantt_chart 封面
套件詳情v0.3.0

gantt_chart

一個完全可自定義的甘特圖套件,純 Dart 編寫

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
187
喜歡數
43
Pub 分數
160

安裝套件

flutter pub add gantt_chart

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個完全可自訂的甘特圖套件,完全以 Dart 編寫,讓開發者能在多個平台視覺化專案時間軸與任務依賴關係。支援動態資料呈現、拖曳放置等互動元件,以及對任務與里程碑的廣泛樣式選項。非常適合專案管理應用程式、排程工具與生產力儀表板,能與 Flutter 的組件系統無縫整合。此套件輕量、文件完整,並由社群積極維護。

適用情境

  • 專案時間軸可視化
  • 任務排程在生產力應用中
  • 資源規劃儀表板
  • 敏捷衝刺追蹤
  • 工作流中的依賴關係映射

主要特色

  • 完全可自定義的設計
  • 拖曳與放置任務操作
  • 支援里程碑與相依性
  • 跨裝置的響應式佈局
  • 內建動畫與轉場效果
  • 用於自定義行為的可擴展 API

適合對象

  • 專案管理應用
  • 團隊協作工具
  • 軟體開發規劃
  • 教育調度系統
  • 企業資源規劃

使用建議

  • 需要手動處理複雜的依賴邏輯
  • 在非常大的資料集上,效能可能會下降
  • 有限的內建匯出功能
  • 樣式設定需要熟悉 Flutter widget
  • 無原生列印支援,開箱即用

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

pub package

Github

A fully customizable gantt chart package written purely in dart

This package is still in active development and may experience breaking changes

Features

  • Sticky area to show event names
  • Fully customizable widget with builders
  • Either use relative or absolute dates

Usage

GanttChartView(
    maxDuration: const Duration(days: 30 * 2), //optional, set to null for infinite horizontal scroll
    startDate: DateTime(2022, 6, 7), //required 
    dayWidth: 30, //column width for each day
    eventHeight: 30, //row height for events
    stickyAreaWidth: 200, //sticky area width
    showStickyArea: true, //show sticky area or not
    showDays: true, //show days or not
    startOfTheWeek: WeekDay.sunday, //custom start of the week
    weekEnds: const {WeekDay.friday, WeekDay.saturday}, //custom weekends
    isExtraHoliday: (context, day) {
        //define custom holiday logic for each day
        return DateUtils.isSameDay(DateTime(2022, 7, 1), day);
    },
    events: [
        //event relative to startDate
        GanttRelativeEvent(
            relativeToStart: const Duration(days: 0),
            duration: const Duration(days: 5),
            displayName: 'Do a very helpful task',
        ),
        //event with absolute start and end
        GanttAbsoluteEvent(
            startDate: DateTime(2022, 6, 10),
            endDate: DateTime(2022, 6, 16),
            displayName: 'Another task',
        ),
    ],
),

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。