TListTheme class

Implementers

Constructors

TListTheme({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})
const

Properties

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

Methods

buildEmptyState(BuildContext context) Widget
buildErrorState(BuildContext context, TListError error) Widget
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
buildLoadingIndicator(BuildContext context) Widget
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? 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}) TListTheme
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