TTableTheme class

Inheritance

Constructors

TTableTheme({TListAnimationBuilder? animationBuilder = TListAnimationBuilders.staggered, Duration animationDuration = const Duration(milliseconds: 800), bool shrinkWrap = false, ScrollPhysics? physics, EdgeInsetsGeometry? padding, Widget emptyStateBuilder(BuildContext context)?, String emptyStateMessage = 'No items found', IconData emptyStateIcon = Icons.inbox_outlined, Widget errorStateBuilder(BuildContext context, TListError error)?, String errorStateMessage = 'An error occurred', Widget loadingBuilder(BuildContext context)?, Widget? headerWidget, bool? headerSticky, Widget? footerWidget, bool? footerSticky, bool needsHorizontalScroll = false, double? horizontalScrollWidth, bool? infiniteScroll, double itemBaseHeight = 50, String loadingMessage = 'Loading...', String noMoreItemsMessage = 'No more items to display.', Widget separatorBuilder(BuildContext context, int index)?, bool showSeparators = false, double itemSpacing = 0, double? cardWidth, bool? forceCardStyle, TTableRowHeaderTheme headerTheme = const TTableRowHeaderTheme(), TTableMobileCardTheme mobileCardTheme = const TTableMobileCardTheme(), TTableRowCardTheme rowCardTheme = const TTableRowCardTheme()})
const

Properties

animationBuilder TListAnimationBuilder?
finalinherited
animationDuration Duration
finalinherited
cardWidth double?
final
emptyStateBuilder Widget Function(BuildContext context)?
finalinherited
emptyStateIcon IconData
finalinherited
emptyStateMessage String
finalinherited
errorStateBuilder Widget Function(BuildContext context, TListError error)?
finalinherited
errorStateMessage String
finalinherited
footerSticky bool?
finalinherited
footerWidget Widget?
finalinherited
forceCardStyle bool?
final
hashCode int
The hash code for this object.
no setterinherited
headerSticky bool?
finalinherited
headerTheme TTableRowHeaderTheme
final
headerWidget Widget?
finalinherited
horizontalScrollWidth double?
finalinherited
infiniteScroll bool?
finalinherited
itemBaseHeight double
finalinherited
itemSpacing double
finalinherited
loadingBuilder Widget Function(BuildContext context)?
finalinherited
loadingMessage String
finalinherited
mobileCardTheme TTableMobileCardTheme
final
needsHorizontalScroll bool
finalinherited
noMoreItemsMessage String
finalinherited
padding EdgeInsetsGeometry?
finalinherited
physics ScrollPhysics?
finalinherited
rowCardTheme TTableRowCardTheme
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorBuilder Widget Function(BuildContext context, int index)?
finalinherited
showSeparators bool
finalinherited
shrinkWrap bool
finalinherited

Methods

buildDefaultExpandedContent<T>(ColorScheme colors, T item, int index) Widget
buildEmptyState(BuildContext context) Widget
inherited
buildErrorState(BuildContext context, TListError error) Widget
inherited
buildListView<T, K>({required BuildContext context, required List<TListItem<T, K>> items, required ListItemBuilder<T, K> itemBuilder, required AnimationController animationController, required ScrollController scrollController, required ScrollController horizontalScrollController, required TListController<T, K> listController, required TListInteraction<T> interaction, required bool loading, required bool hasError, required TListError? error, required bool hasMoreItems, double? height}) Widget
inherited
buildLoadingIndicator(BuildContext context) Widget
inherited
copyWith({TListAnimationBuilder? animationBuilder, Duration? animationDuration, bool? shrinkWrap, ScrollPhysics? physics, EdgeInsetsGeometry? padding, Widget emptyStateBuilder(BuildContext context)?, String? emptyStateMessage, IconData? emptyStateIcon, Widget errorStateBuilder(BuildContext context, TListError error)?, String? errorStateMessage, Widget loadingBuilder(BuildContext context)?, Widget loadingOverlayBuilder(BuildContext context)?, Widget? headerWidget, bool? headerSticky, Widget? footerWidget, bool? footerSticky, bool? needsHorizontalScroll, double? horizontalScrollWidth, bool? infiniteScroll, double? itemBaseHeight, String? loadingMessage, String? noMoreItemsMessage, Widget separatorBuilder(BuildContext context, int index)?, bool? showSeparators, double? itemSpacing, double? cardWidth, bool? forceCardStyle, TTableRowHeaderTheme? headerTheme, TTableMobileCardTheme? mobileCardTheme, TTableRowCardTheme? rowCardTheme}) TTableTheme
override
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

Static Methods

calculateColumnWidths<T>(List<TTableHeader<T>> headers, bool selectable, bool expandable) Map<int, TableColumnWidth>
calculateTotalRequiredWidth<T>(List<TTableHeader<T>> headers, bool selectable, bool expandable) double