GanttStyleConfig constructor

const GanttStyleConfig({
  1. Color gridColor = const Color(0xFFE0E0E0),
  2. double gridStrokeWidth = 1.0,
  3. Color gridMonthLineColor = const Color(0xFFBDBDBD),
  4. double gridMonthLineStrokeWidth = 1.5,
  5. Color todayBackgroundColor = const Color(0xFFFFF8E1),
  6. Color weekendBackgroundColor = const Color(0xffebf2fa),
  7. Color headerBackgroundColor = Colors.white,
  8. Color monthHeaderBackgroundColor = const Color(0xFFEEEEEE),
  9. Color weekHeaderBackgroundColor = const Color(0xFFF5F5F5),
  10. Color taskBackgroundColor = Colors.blue,
  11. Color taskBorderColor = Colors.black54,
  12. double taskBorderStrokeWidth = 1.5,
  13. TextStyle? taskNameStyle,
  14. Color progressColor = const Color(0xFF388E3C),
  15. TextStyle? progressTextStyle,
  16. bool showProgressText = true,
  17. TextStyle? monthHeaderTextStyle,
  18. TextStyle? weekHeaderTextStyle,
  19. TextStyle? dayHeaderTextStyle,
  20. TextStyle? tooltipTitleStyle,
  21. TextStyle? tooltipContentStyle,
  22. TextStyle? tooltipDetailStyle,
  23. TextStyle? tooltipOverdueStyle,
  24. TextStyle? controlsViewRangeStyle,
  25. Color dragHighlightColor = const Color(0x66448AFF),
  26. double dragHighlightStrokeWidth = 3.0,
  27. Color reorderHighlightColor = const Color(0x33000000),
  28. Color handleColor = const Color(0x66000000),
  29. Color dependencyLineColor = const Color(0xFF757575),
  30. double dependencyLineStrokeWidth = 1.5,
  31. Color dependencyCircleColor = Colors.white,
  32. Color dependencyCircleBorderColor = const Color(0xFF616161),
  33. double dependencyCircleBorderStrokeWidth = 1.2,
  34. Color dependencyArrowColor = const Color(0xFF757575),
  35. Color dependencyConnectorHighlightColor = const Color(0x80448AFF),
  36. Color overdueWarningColor = Colors.red,
  37. TextStyle? emptyStateTextStyle,
  38. Color? emptyStateIconColor,
  39. 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});