DataTableThemeData constructor
- Decoration? decoration,
- MaterialStateProperty<
Color?> ? dataRowColor, - @Deprecated('Migrate to use dataRowMinHeight and dataRowMaxHeight instead. ' 'This feature was deprecated after v3.7.0-5.0.pre.') double? dataRowHeight,
- double? dataRowMinHeight,
- double? dataRowMaxHeight,
- TextStyle? dataTextStyle,
- MaterialStateProperty<
Color?> ? headingRowColor, - double? headingRowHeight,
- TextStyle? headingTextStyle,
- double? horizontalMargin,
- double? columnSpacing,
- double? dividerThickness,
- double? checkboxHorizontalMargin,
- MaterialStateProperty<
MouseCursor?> ? headingCellCursor, - MaterialStateProperty<
MouseCursor?> ? dataRowCursor, - MainAxisAlignment? headingRowAlignment,
Creates a theme that can be used for ThemeData.dataTableTheme.
Implementation
const DataTableThemeData({
this.decoration,
this.dataRowColor,
@Deprecated(
'Migrate to use dataRowMinHeight and dataRowMaxHeight instead. '
'This feature was deprecated after v3.7.0-5.0.pre.',
)
double? dataRowHeight,
double? dataRowMinHeight,
double? dataRowMaxHeight,
this.dataTextStyle,
this.headingRowColor,
this.headingRowHeight,
this.headingTextStyle,
this.horizontalMargin,
this.columnSpacing,
this.dividerThickness,
this.checkboxHorizontalMargin,
this.headingCellCursor,
this.dataRowCursor,
this.headingRowAlignment,
}) : assert(dataRowMinHeight == null || dataRowMaxHeight == null || dataRowMaxHeight >= dataRowMinHeight),
assert(dataRowHeight == null || (dataRowMinHeight == null && dataRowMaxHeight == null),
'dataRowHeight ($dataRowHeight) must not be set if dataRowMinHeight ($dataRowMinHeight) or dataRowMaxHeight ($dataRowMaxHeight) are set.'),
dataRowMinHeight = dataRowHeight ?? dataRowMinHeight,
dataRowMaxHeight = dataRowHeight ?? dataRowMaxHeight;