CellsDataWidget class

Widget hiển thị cells với dữ liệu có thể edit (như Excel)

Inheritance

Constructors

CellsDataWidget({Key? key, required CellsController controller, CellsDataController? dataController, CellsSizeController? sizeController, bool enableEdit = false, Color? borderColor, double? borderWidth, Color? defaultCellColor, Color? editingCellBorderColor, void onCellTextChanged(int index, String text)?, void onCellTap(int index)?, bool showHeader = false, Color? headerBackgroundColor, TextStyle? headerTextStyle})
const

Properties

borderColor → Color?
Màu border
final
borderWidth → double?
Độ dày border
final
controller → CellsController
CellsController để quản lý grid
final
dataController → CellsDataController?
CellsDataController để quản lý dữ liệu
final
defaultCellColor → Color?
Màu nền mặc định
final
editingCellBorderColor → Color?
Màu border của cell đang được edit
final
enableEdit → bool
Cho phép edit cells
final
hashCode → int
The hash code for this object.
no setterinherited
headerBackgroundColor → Color?
Header row background color
final
headerTextStyle → TextStyle?
Header text style
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCellTap → void Function(int index)?
Callback khi cell được tap
final
onCellTextChanged → void Function(int index, String text)?
Callback khi cell text thay đổi
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showHeader → bool
Hiển thị header row (hàng đầu tiên)
final
sizeController → CellsSizeController?
CellsSizeController để quản lý kích thước tùy chỉnh
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CellsDataWidget>
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, 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