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.
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.
- syncfusion_flutter_charts
Provides a wide range of chart types including Gantt, with a mature UI kit and commercial support
91Compare
Works with
Packages commonly used together with legacy_gantt_chart: ones it builds on, ones built on it, and its own family.
- cryptolegacy_gantt_chart depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- shelflegacy_gantt_chart depends on itComposable web server middleware for Dart
- shelf_web_socketlegacy_gantt_chart depends on itShelf handler that upgrades HTTP to WebSocket and provides a WebSocketChannel per connection.
- intllegacy_gantt_chart depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- web_socket_channellegacy_gantt_chart depends on itCross‑platform WebSocket channel wrapper for Dart
- fixnumlegacy_gantt_chart depends on itProvides 32‑ and 64‑bit signed fixed‑width integer types for Dart.
- synchronizedlegacy_gantt_chart depends on itLock mechanism to prevent concurrent access to asynchronous code.
- material_uilegacy_gantt_chart depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.