AppTableCell class

Constructors

AppTableCell({required WidgetBuilder builder, double height = 40, Color backgroundColor = const Color(0xFFFFFFFF), Color? selectRowColor, AlignmentGeometry alignment = Alignment.center, EdgeInsets padding = const EdgeInsets.all(0)})
默认初始化 builder 自定义绘制Cell组件 height 单元格的高度 backgroundColor 单元格的背景颜色 selectRowColor 单元格选中时的背景颜色
AppTableCell.empty()
创建一个空的Cell
factory
AppTableCell.text({required String text, TextStyle textStyle = const TextStyle(fontSize: 14, color: Color(0xFF333333)), double height = 40, Color backgroundColor = const Color(0xFFFFFFFF), Color? selectRowColor, AlignmentGeometry alignment = Alignment.center, EdgeInsets padding = const EdgeInsets.all(0), Key? key})
创建一个展示文本的 Cell text 文本内容 textStyle 文本样式 height 文本对齐方式 backgroundColor 单元格的背景颜色 selectRowColor 单元格选中时的背景颜色
factory
AppTableCell.textEdit({required String text, TextStyle textStyle = const TextStyle(fontSize: 14, color: Color(0xFF333333)), double height = 40, Color backgroundColor = const Color(0xFFFFFFFF), TextEditingController? controller, Color? selectRowColor, AlignmentGeometry alignment = Alignment.center, EdgeInsets padding = const EdgeInsets.all(0), List<TextInputFormatter> inputFormatters = const [], TextInputType? keyboardType, Key? key, ValueChanged<String?>? onSubmitted})
创建一个可以编辑的Cell text 文本内容 textStyle 文本样式 height 文本对齐方式 backgroundColor 单元格的背景颜色 controller 文本控制器 selectRowColor 单元格选中时的背景颜色
factory

Properties

alignment AlignmentGeometry
布局方式 默认居中
final
backgroundColor Color
单元格背景颜色
final
builder WidgetBuilder
绘制Cell组件
final
hashCode int
The hash code for this object.
no setterinherited
height double
单元格的宽度
final
isSelected bool
getter/setter pair
padding EdgeInsets
设置单元格的内边距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectBackgroundColor Color
no setter
selectRowColor Color?
单元格选中时的背景颜色
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