GanttChartStyle class

Configuration class for Gantt chart styling.

Constructors

GanttChartStyle({Color lineColor = Colors.blue, Color pointColor = Colors.blue, Color connectionLineColor = Colors.grey, Color backgroundColor = Colors.white, TextStyle? labelStyle, TextStyle? dateStyle, TextStyle? descriptionStyle, double lineWidth = 2.0, double pointRadius = 4.0, double connectionLineWidth = 1.0, Duration animationDuration = const Duration(milliseconds: 1500), Curve animationCurve = Curves.easeInOut, bool showConnections = true, DateFormat? dateFormat, double verticalSpacing = 120.0, double horizontalPadding = 32.0, double labelOffset = 25.0, double timelineYOffset = 60.0})
Creates a new instance of GanttChartStyle with default values.
const

Properties

animationCurve Curve
The curve applied to the animation for a smooth effect.
final
animationDuration Duration
The duration of the animation for chart rendering.
final
backgroundColor Color
The background color of the Gantt chart.
final
connectionLineColor Color
The color of the lines connecting tasks.
final
connectionLineWidth double
The width of the connection lines between tasks.
final
dateFormat → DateFormat?
Optional date format for displaying task dates.
final
dateStyle TextStyle?
The text style for dates displayed in the chart.
final
descriptionStyle TextStyle?
The text style for task descriptions.
final
hashCode int
The hash code for this object.
no setterinherited
horizontalPadding double
The horizontal padding around the Gantt chart.
final
labelOffset double
The offset for the task labels from their respective lines.
final
labelStyle TextStyle?
The text style for task labels.
final
lineColor Color
The color of the lines representing tasks in the Gantt chart.
final
lineWidth double
The width of the task lines.
final
pointColor Color
The color of the points representing the start and end of tasks.
final
pointRadius double
The radius of the points at the start and end of tasks.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showConnections bool
A flag indicating whether to show connection lines between tasks.
final
timelineYOffset double
The vertical offset for the timeline of the Gantt chart.
final
verticalSpacing double
The vertical spacing between tasks in the Gantt chart.
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.
inherited