GanttStyleConfig constructor
const
GanttStyleConfig({
- Color gridColor = const Color(0xFFE0E0E0),
- double gridStrokeWidth = 1.0,
- Color gridMonthLineColor = const Color(0xFFBDBDBD),
- double gridMonthLineStrokeWidth = 1.5,
- Color todayBackgroundColor = const Color(0xFFFFF8E1),
- Color weekendBackgroundColor = const Color(0xffebf2fa),
- Color headerBackgroundColor = Colors.white,
- Color monthHeaderBackgroundColor = const Color(0xFFEEEEEE),
- Color weekHeaderBackgroundColor = const Color(0xFFF5F5F5),
- Color taskBackgroundColor = Colors.blue,
- Color taskBorderColor = Colors.black54,
- double taskBorderStrokeWidth = 1.5,
- TextStyle? taskNameStyle,
- Color progressColor = const Color(0xFF388E3C),
- TextStyle? progressTextStyle,
- bool showProgressText = true,
- TextStyle? monthHeaderTextStyle,
- TextStyle? weekHeaderTextStyle,
- TextStyle? dayHeaderTextStyle,
- TextStyle? tooltipTitleStyle,
- TextStyle? tooltipContentStyle,
- TextStyle? tooltipDetailStyle,
- TextStyle? tooltipOverdueStyle,
- TextStyle? controlsViewRangeStyle,
- Color dragHighlightColor = const Color(0x66448AFF),
- double dragHighlightStrokeWidth = 3.0,
- Color reorderHighlightColor = const Color(0x33000000),
- Color handleColor = const Color(0x66000000),
- Color dependencyLineColor = const Color(0xFF757575),
- double dependencyLineStrokeWidth = 1.5,
- Color dependencyCircleColor = Colors.white,
- Color dependencyCircleBorderColor = const Color(0xFF616161),
- double dependencyCircleBorderStrokeWidth = 1.2,
- Color dependencyArrowColor = const Color(0xFF757575),
- Color dependencyConnectorHighlightColor = const Color(0x80448AFF),
- Color overdueWarningColor = Colors.red,
- TextStyle? emptyStateTextStyle,
- Color? emptyStateIconColor,
- double? emptyStateIconSize,
Implementation
const GanttStyleConfig(
{
// Grid
this.gridColor = const Color(0xFFE0E0E0), // Colors.grey.shade300
this.gridStrokeWidth = 1.0,
this.gridMonthLineColor = const Color(0xFFBDBDBD), // Colors.grey.shade400
this.gridMonthLineStrokeWidth = 1.5,
this.todayBackgroundColor =
const Color(0xFFFFF8E1), // Colors.amber.shade100
this.weekendBackgroundColor =
const Color(0xffebf2fa), // Light blue for weekends
// Headers
this.headerBackgroundColor = Colors.white,
this.monthHeaderBackgroundColor =
const Color(0xFFEEEEEE), // Colors.grey.shade200
this.weekHeaderBackgroundColor =
const Color(0xFFF5F5F5), // Colors.grey.shade100
// Tasks
this.taskBackgroundColor = Colors.blue, // Default - often overridden
this.taskBorderColor = Colors.black54,
this.taskBorderStrokeWidth = 1.5,
this.taskNameStyle,
this.progressColor =
const Color(0xFF388E3C), // Green (now used as fallback only)
this.progressTextStyle,
this.showProgressText = true,
this.monthHeaderTextStyle,
this.weekHeaderTextStyle,
this.dayHeaderTextStyle,
this.tooltipTitleStyle,
this.tooltipContentStyle,
this.tooltipDetailStyle,
this.tooltipOverdueStyle,
this.controlsViewRangeStyle,
// Interaction Highlights
this.dragHighlightColor =
const Color(0x66448AFF), // Colors.blueAccent.withOpacity(0.4)
this.dragHighlightStrokeWidth = 3.0,
this.reorderHighlightColor =
const Color(0x33000000), // Colors.black.withOpacity(0.2)
this.handleColor =
const Color(0x66000000), // Colors.black.withOpacity(0.4)
// Dependencies
this.dependencyLineColor =
const Color(0xFF757575), // Colors.grey.shade600
this.dependencyLineStrokeWidth = 1.5,
this.dependencyCircleColor = Colors.white,
this.dependencyCircleBorderColor =
const Color(0xFF616161), // Colors.grey.shade700
this.dependencyCircleBorderStrokeWidth = 1.2,
this.dependencyArrowColor =
const Color(0xFF757575), // Colors.grey.shade600
this.dependencyConnectorHighlightColor =
const Color(0x80448AFF), // Colors.blueAccent.withOpacity(0.5),
this.overdueWarningColor = Colors.red,
this.emptyStateTextStyle,
this.emptyStateIconColor,
this.emptyStateIconSize});