GanttChartView class
Displays a gantt chart
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GanttChartView
Constructors
-
GanttChartView({Key? key, required List<
GanttEventBase> events, required DateTime startDate, Duration? maxDuration, double stickyAreaWidth = 200, Widget stickyAreaEventBuilder(BuildContext context, int eventIndex, GanttEventBase event, Color eventColor)?, WidgetBuilder? stickyAreaDayBuilder, WidgetBuilder? stickyAreaWeekBuilder, bool showDays = true, double dayWidth = 30, double eventHeight = 30, double weekHeaderHeight = 30, double dayHeaderHeight = 40, Set<WeekDay> weekEnds = const {WeekDay.friday, WeekDay.saturday}, Widget dayHeaderBuilder(BuildContext context, DateTime date, bool isHoliday)?, Widget weekHeaderBuilder(BuildContext context, DateTime weekDate)?, IsExtraHolidayFunc? isExtraHoliday, Widget eventRowPerWeekBuilder(BuildContext context, DateTime eventStart, DateTime eventEnd, double dayWidth, double weekWidth, DateTime weekStartDate, bool isHoliday(BuildContext, DateTime), GanttEventBase event, Color eventColor)?, WeekDay startOfTheWeek = WeekDay.sunday, EventCellBuilderFunction? eventCellPerDayBuilder, Color? holidayColor, bool showStickyArea = true, ScrollController? scrollController, ScrollPhysics? scrollPhysics})
Properties
- dayHeaderBuilder → (Widget Function(BuildContext context, DateTime date, bool isHoliday)?)
-
the day header builder
final
- dayHeaderHeight → double
-
Day header row height (in pixels)
final
- dayWidth → double
-
Day column width (in pixels)
final
- eventCellPerDayBuilder → EventCellBuilderFunction?
-
Custom builder for the event cell per day
final
- eventHeight → double
-
Event row height (in pixels)
final
- eventRowPerWeekBuilder → (Widget Function(BuildContext context, DateTime eventStart, DateTime eventEnd, double dayWidth, double weekWidth, DateTime weekStartDate, bool isHoliday(BuildContext, DateTime), GanttEventBase event, Color eventColor)?)
-
Custom builder for the event row per week
final
-
events
→ List<
GanttEventBase> -
list of events
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- holidayColor → Color?
-
Color to mark holiday
final
- isExtraHoliday → IsExtraHolidayFunc?
-
override this to check if specific date is a holiday
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxDuration → Duration?
-
Maximum duration that will be displayed by the gantt chart
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
The horizontal scroll controller that gets passed to the internal listview
final
- scrollPhysics → ScrollPhysics?
-
The horizontal scroll physics that gets passed to the internal listview
final
- showDays → bool
-
show days row
final
- showStickyArea → bool
-
Show sticky row headers on the left
final
- startDate → DateTime
-
Initial datetime
final
- startOfTheWeek → WeekDay
-
First workday of the week, by default WeekDay.sunday
final
- stickyAreaDayBuilder → WidgetBuilder?
-
Custom builder for sticky area as a header for the days row
final
- stickyAreaEventBuilder → (Widget Function(BuildContext context, int eventIndex, GanttEventBase event, Color eventColor)?)
-
Custom builder for sticky area per event
final
- stickyAreaWeekBuilder → WidgetBuilder?
-
Custom builder for sticky area as a header for the weeks row
final
- stickyAreaWidth → double
-
Sticky area width
final
-
weekEnds
→ Set<
WeekDay> -
a set of
WeekDay
s which are considered holidays that occur every weekfinal - weekHeaderBuilder → (Widget Function(BuildContext context, DateTime weekDate)?)
-
the week header builder (gets called for every week)
final
- weekHeaderHeight → double
-
Week header row height (in pixels)
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GanttChartView> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited