GanttStyleConfig class

Configuration class for styling elements within a Gantt chart view.

Holds color and style properties used for drawing various components like grids, headers, tasks, dependencies, and highlights.

Annotations

Constructors

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})
const

Properties

controlsViewRangeStyle TextStyle?
Style for the view range text in controls.
final
dayHeaderTextStyle TextStyle?
Style for the day header text.
final
dependencyArrowColor Color
Fill color for the arrowhead at the end of a dependency line.
final
dependencyCircleBorderColor Color
Color for the border of the dependency start circle.
final
dependencyCircleBorderStrokeWidth double
Stroke width for the border of the dependency start circle.
final
dependencyCircleColor Color
Fill color for the small circle often drawn at the start of a dependency line.
final
dependencyConnectorHighlightColor Color
Fill color for highlighting dependency connectors when interacting (e.g., creating a new dependency).
final
dependencyLineColor Color
Color for the lines connecting dependent tasks.
final
dependencyLineStrokeWidth double
Stroke width for the dependency lines.
final
dragHighlightColor Color
Color for the highlight shown when dragging a task.
final
dragHighlightStrokeWidth double
Stroke width for the drag highlight.
final
emptyStateIconColor Color?
Color for the icon displayed in the empty state.
final
emptyStateIconSize double?
Size of the icon displayed in the empty state.
final
emptyStateTextStyle TextStyle?
Style for the empty state text when no tasks are available.
final
gridColor Color
Color for the standard grid lines (e.g., daily lines).
final
gridMonthLineColor Color
Color for the more prominent grid lines (e.g., monthly dividers).
final
gridMonthLineStrokeWidth double
Stroke width for the more prominent grid lines.
final
gridStrokeWidth double
Stroke width for the standard grid lines.
final
handleColor Color
Color for interactive handles (e.g., resize handles on tasks).
final
hashCode int
The hash code for this object.
no setteroverride
headerBackgroundColor Color
Background fill color for the main header area (often above date headers).
final
monthHeaderBackgroundColor Color
Background fill color for the month headers.
final
monthHeaderTextStyle TextStyle?
Style for the month header text.
final
overdueWarningColor Color
Color for the warning icon displayed on overdue tasks.
final
progressColor Color
Color for the progress indicator inside task bars.
final
progressTextStyle TextStyle?
Style for the progress indicator text (percentage).
final
reorderHighlightColor Color
Fill color for the highlight shown when hovering over a valid reordering drop zone.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showProgressText bool
Whether to show percentage text on the progress indicator.
final
taskBackgroundColor Color
Default background fill color for task bars. Note: This might be overridden per task based on specific logic.
final
taskBorderColor Color
Color for the border around task bars.
final
taskBorderStrokeWidth double
Stroke width for the border around task bars.
final
taskNameStyle TextStyle?
Style for the text label drawn inside task bars.
final
todayBackgroundColor Color
Background fill color for highlighting the current day column.
final
tooltipContentStyle TextStyle?
Style for the tooltip content (dates, progress, etc).
final
tooltipDetailStyle TextStyle?
Style for the tooltip details (task description).
final
tooltipOverdueStyle TextStyle?
Style for the tooltip overdue warning.
final
tooltipTitleStyle TextStyle?
Style for the tooltip title (task name).
final
weekendBackgroundColor Color
Creates a configuration object for Gantt chart styles.
final
weekHeaderBackgroundColor Color
Background fill color for the week headers (or day headers depending on scale).
final
weekHeaderTextStyle TextStyle?
Style for the week header text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

defaultProgressTextStyle(Color backgroundColor) TextStyle