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
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited