SummerDataTableThemeData class

Theme data for SummerDataTable.

Constructors

SummerDataTableThemeData({required Color headerBackgroundColor, required TextStyle headerTextStyle, required Color cellBackgroundColor, required Color? altRowBackgroundColor, required Color? hoverColor, required Color? selectedColor, required Color sortActiveColor, required TextStyle cellTextStyle, required double rowHeight, required double headerHeight, required Color borderColor, required double borderWidth, required Color resizeHandleColor, required double resizeHandleWidth, required Widget sortAscendingIcon, required Widget sortDescendingIcon, required Widget expandIcon, Widget? loadingWidget, Widget? emptyWidget, Color iconInactiveColor = const Color(0xFFBFBFBF), Color controlBorderColor = const Color(0xFFBFBFBF), Widget? sortInactiveIcon, required Color paginationActiveColor, required double paginationHeight, required double pageButtonSize, BoxShadow? fixedColumnShadow, Color? pinnedColumnBackgroundColor, String filterResetLabel = 'Reset', String filterConfirmLabel = 'Confirm'})
const
SummerDataTableThemeData.defaultTheme()
Returns a sensible default theme (antd-like).
factory

Properties

altRowBackgroundColor Color?
Background color for alternating (odd) rows. Null disables striping.
final
borderColor Color
Border color for outer and inner borders.
final
borderWidth double
Border width.
final
cellBackgroundColor Color
Default background color for data rows.
final
cellTextStyle TextStyle
Default text style for data cells.
final
controlBorderColor Color
Border color for unchecked radio selection indicators.
final
emptyWidget Widget?
Widget shown when data is empty.
final
expandIcon Widget
Expand / collapse chevron for expandable rows.
final
filterConfirmLabel String
Label for the filter dropdown confirm button.
final
filterResetLabel String
Label for the filter dropdown reset button.
final
fixedColumnShadow BoxShadow?
Shadow drawn at the inner edge of pinned columns when the middle band is horizontally scrollable. Null disables the shadow.
final
hashCode int
The hash code for this object.
no setterinherited
headerBackgroundColor Color
Background color of the header row.
final
headerHeight double
Height of the header row.
final
headerTextStyle TextStyle
Text style for header cells.
final
hoverColor Color?
Background color applied while hovering a row (null disables hover).
final
iconInactiveColor Color
Color for inactive sort icon and inactive filter funnel.
final
loadingWidget Widget?
Widget shown during loading state.
final
pageButtonSize double
Size of a pagination page button.
final
paginationActiveColor Color
Active color for pagination controls. Defaults to sortActiveColor.
final
paginationHeight double
Height of the pagination bar.
final
pinnedColumnBackgroundColor Color?
Background color for pinned (fixed) columns. When set, cells in left/right pinned columns use this color instead of cellBackgroundColor or altRowBackgroundColor. Null disables (pinned columns use normal row color).
final
resizeHandleColor Color
Color of the column-resize drag handle.
final
resizeHandleWidth double
Hit width of the column-resize drag handle.
final
rowHeight double
Default height for data rows.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color?
Background color applied to selected rows.
final
sortActiveColor Color
Text color (and sort icon color) of the active sort column header.
final
sortAscendingIcon Widget
Icon displayed when a column is sorted ascending.
final
sortDescendingIcon Widget
Icon displayed when a column is sorted descending.
final
sortInactiveIcon Widget?
Icon shown when a sortable column is not active. Defaults to a neutral indicator; null is allowed.
final

Methods

copyWith({Color? headerBackgroundColor, TextStyle? headerTextStyle, Color? cellBackgroundColor, Object? altRowBackgroundColor = _sentinel, Object? hoverColor = _sentinel, Object? selectedColor = _sentinel, Color? sortActiveColor, TextStyle? cellTextStyle, double? rowHeight, double? headerHeight, Color? borderColor, double? borderWidth, Color? resizeHandleColor, double? resizeHandleWidth, Widget? sortAscendingIcon, Widget? sortDescendingIcon, Widget? expandIcon, Color? iconInactiveColor, Color? controlBorderColor, Object? sortInactiveIcon = _sentinel, Color? paginationActiveColor, double? paginationHeight, double? pageButtonSize, Object? fixedColumnShadow = _sentinel, Object? pinnedColumnBackgroundColor = _sentinel, String? filterResetLabel, String? filterConfirmLabel, Object? loadingWidget = _sentinel, Object? emptyWidget = _sentinel}) SummerDataTableThemeData
Creates a copy with optional overrides.
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