ColumnWidget class

A widget that represents a column in a Kanban board.

Handles the display of tasks, drag-and-drop operations, and column-specific actions like adding tasks and clearing completed tasks.

Inheritance

Constructors

ColumnWidget({Key? key, required KanbanColumn column, required KanbanColumnTheme theme, dynamic onAddTask()?, dynamic onReorderedTask(KanbanColumn column, int oldIndex, int newIndex)?, dynamic onTaskDropped(KanbanColumn source, int sourceIndex, KanbanColumn destination, [int? destinationIndex])?, dynamic onDeleteTask(KanbanColumn column, int index)?, dynamic onEditTask(KanbanColumn column, int index, String initialTitle, String initialSubtitle)?, dynamic onClearDone()?, double? mobileMaxHeight = KanbanColumnLayout.defaultMobileMaxHeight})
Creates a ColumnWidget with the given parameters.
const

Properties

column KanbanColumn
The column data to display.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mobileMaxHeight double?
Maximum height for the column when displayed on mobile Only applied when the column is in a vertical layout
final
onAddTask → dynamic Function()?
Callback when the add task button is pressed.
final
onClearDone → dynamic Function()?
Callback when the clear all done tasks button is pressed.
final
onDeleteTask → dynamic Function(KanbanColumn column, int index)?
Callback when a task's delete button is pressed.
final
onEditTask → dynamic Function(KanbanColumn column, int index, String initialTitle, String initialSubtitle)?
Callback when a task's edit button is pressed.
final
onReorderedTask → dynamic Function(KanbanColumn column, int oldIndex, int newIndex)?
Callback when a task is reordered within the column.
final
onTaskDropped → dynamic Function(KanbanColumn source, int sourceIndex, KanbanColumn destination, [int? destinationIndex])?
Callback when a task is dropped into this column.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme KanbanColumnTheme
Theme configuration for the column.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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