Skip to content
pubscout

legacy_gantt_chart

10.0.1, released 2 days ago by gantt-sync.com

A Flutter widget for interactive, themable Gantt charts with drag‑drop and real‑time sync.

WASM-readyUses material_ui
$ flutter pub add legacy_gantt_chart
Source repository

What it does

It renders large Gantt timelines using CustomPainter and lets users create, move, resize, and link tasks. Data can be loaded dynamically and updated in real time via a controller.

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

Use it when

  • You need a timeline view for project scheduling or resource planning in a Flutter app
  • You require interactive task manipulation (drag‑drop, resize) and custom theming
  • You want offline‑first support with CRDT‑based sync

Skip it when

  • You only need simple line/bar/pie charts (overkill for Gantt)
  • Your app targets very low‑end devices where custom painting of thousands of tasks may be heavy

Strengths

  • Highly performant rendering of >10k tasks
  • Rich interactivity: drag‑drop, resizing, dependency creation
  • Extensive theming and custom widget builders
  • Backend‑agnostic with real‑time CRDT sync

Weaknesses

  • Large dependency footprint (provider, intl, many server libs)
  • Requires Dart 3.13 and Flutter 3.47+ (may limit older projects)
  • Not a general‑purpose chart library; focused solely on Gantt

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
16

Add the package and its peer dependencies (provider, intl, material_ui). Ensure your app uses Dart 3.13 and Flutter 3.47+. No code‑gen required.

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

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          appBar: AppBar(title: const Text('Gantt Demo')),
          body: LegacyGanttChartWidget(
            controller: LegacyGanttController(
              tasks: [
                GanttTask(id: '1', title: 'Design', start: DateTime.now(), end: DateTime.now().add(const Duration(days: 5))),
                GanttTask(id: '2', title: 'Development', start: DateTime.now().add(const Duration(days: 5)), end: DateTime.now().add(const Duration(days: 15))),
              ],
            ),
          ),
        ),
      );
}

Alternatives

Packages that do the same job and could replace legacy_gantt_chart.

Works with

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