TableCellTheme constructor
const
TableCellTheme({
- WidgetStateProperty<
Border?> ? border, - WidgetStateProperty<
Color?> ? backgroundColor, - WidgetStateProperty<
TextStyle?> ? textStyle,
Creates a TableCellTheme.
All parameters are optional and use WidgetStateProperty for state-aware styling.
Parameters:
border
(WidgetStateProperty<Border?>?, optional): State-aware bordersbackgroundColor
(WidgetStateProperty<Color?>?, optional): State-aware backgroundtextStyle
(WidgetStateProperty<TextStyle?>?, optional): State-aware text styling
Example:
TableCellTheme(
border: WidgetStateProperty.all(
Border.all(color: Colors.grey.shade300),
),
backgroundColor: WidgetStateProperty.resolveWith((states) {
return states.contains(WidgetState.selected) ? Colors.blue.shade100 : null;
}),
);
Implementation
const TableCellTheme({
this.border,
this.backgroundColor,
this.textStyle,
});