![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),
startDate: DateTime(2022, 6, 7),
dayWidth: 30,
eventHeight: 30,
stickyAreaWidth: 200,
showStickyArea: true,
showDays: true,
startOfTheWeek: WeekDay.sunday,
weekEnds: const {WeekDay.friday, WeekDay.saturday},
isExtraHoliday: (context, day) {
return DateUtils.isSameDay(DateTime(2022, 7, 1), day);
},
events: [
GanttRelativeEvent(
relativeToStart: const Duration(days: 0),
duration: const Duration(days: 5),
displayName: 'Do a very helpful task',
),
GanttAbsoluteEvent(
startDate: DateTime(2022, 6, 10),
endDate: DateTime(2022, 6, 16),
displayName: 'Another task',
),
],
),