Skip to content
pubscout

gantt_chart

0.3.0, released 4 years ago by bdaya-dev.com

Fully customizable Gantt chart widget written purely in Dart

WASM-ready
$ flutter pub add gantt_chart
Source repository

What it does

Provides a scrollable Gantt chart with sticky event names, customizable builders, and support for relative or absolute dates. It exposes parameters for day width, event height, and weekend logic.

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

Use it when

  • You need to display project timelines or task schedules in a Gantt chart format
  • You want a Flutter widget that handles both relative and absolute date ranges
  • You require a sticky area for event names and custom weekend handling

Skip it when

  • You need a different type of chart (e.g., line, bar, pie)
  • You are building a production app that requires a stable, fully mature charting library
  • You need advanced features like zooming, tooltips, or data export

Strengths

  • Highly customizable via builders and color parameters
  • Supports both relative and absolute date events
  • Includes sticky area for event names and weekend logic
  • Pure Dart implementation, no native dependencies

Weaknesses

  • Still in active development with potential breaking changes
  • Limited feature set compared to mature chart libraries
  • No built‑in zoom or tooltip support

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
GanttChartView(
  startDate: DateTime(2022, 6, 7),
  maxDuration: const Duration(days: 60),
  dayWidth: 30,
  eventHeight: 30,
  events: [
    GanttRelativeEvent(
      relativeToStart: const Duration(days: 0),
      duration: const Duration(days: 5),
      displayName: 'Task 1',
    ),
    GanttAbsoluteEvent(
      startDate: DateTime(2022, 6, 10),
      endDate: DateTime(2022, 6, 16),
      displayName: 'Task 2',
    ),
  ],
)

Alternatives

Packages that do the same job and could replace gantt_chart.

  • k_chart

    A Flutter K-line and depth chart widget with drag, scale, and technical indicators.

  • fl_chart

    A highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.

  • syncfusion_officechart

    Create Excel charts programmatically in XLSX format without a UI.

  • legacy_timeline_scrubber

    A customizable timeline scrubber widget for Gantt charts and time-based data navigation.

Works with

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