AppTableCell constructor
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 单元格选中时的背景颜色
Implementation
AppTableCell({
required this.builder,
this.height = 40,
this.backgroundColor = const Color(0xFFFFFFFF),
this.selectRowColor,
this.alignment = Alignment.center,
this.padding = const EdgeInsets.all(0),
});