TListTheme class
Theme configuration for TList.
TListTheme defines global list behavior and appearance, including:
- Animations
- Scroll physics
- Padding
- Builders for states (empty, error, loading)
- Sticky headers/footers
- Drag and drop styling
- Implementers
Constructors
- TListTheme({TListAnimationBuilder? animationBuilder = TListAnimationBuilders.staggered, Duration animationDuration = const Duration(milliseconds: 800), bool shrinkWrap = false, ScrollPhysics? physics, EdgeInsets? padding, TListEmptyBuilder? emptyStateBuilder, TListErrorBuilder? errorStateBuilder, TListLoadingBuilder? loadingBuilder, TListHeaderBuilder? headerBuilder, bool? headerSticky, bool? infiniteScroll, double? itemBaseHeight, TListSeparatorBuilder? listSeparatorBuilder, TListDragProxyDecorator? dragProxyDecorator, TGridMode? grid, TGridDelegateBuilder? gridDelegate})
-
Creates a list theme.
const
- TListTheme.defaultTheme(ColorScheme colors)
-
Creates a default theme derived from the context colors.
factory
Properties
- animationBuilder → TListAnimationBuilder?
-
final
- animationDuration → Duration
-
final
- dragProxyDecorator → TListDragProxyDecorator?
-
final
- emptyStateBuilder → TListEmptyBuilder?
-
final
- errorStateBuilder → TListErrorBuilder?
-
final
-
final
-
final
- grid → TGridMode?
-
final
- gridDelegate → TGridDelegateBuilder?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBuilder → TListHeaderBuilder?
-
final
- headerSticky → bool?
-
final
- infiniteScroll → bool?
-
final
-
final
- itemBaseHeight → double
-
final
- listSeparatorBuilder → TListSeparatorBuilder?
-
final
- loadingBuilder → TListLoadingBuilder?
-
final
- padding → EdgeInsets?
-
final
- physics → ScrollPhysics?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shrinkWrap → bool
-
final
Methods
-
copyWith(
{TListAnimationBuilder? animationBuilder, Duration? animationDuration, bool? shrinkWrap, ScrollPhysics? physics, EdgeInsets? padding, TListEmptyBuilder? emptyStateBuilder, TListErrorBuilder? errorStateBuilder, TListLoadingBuilder? loadingBuilder, TListHeaderBuilder? headerBuilder, bool? headerSticky, bool? infiniteScroll, double? itemBaseHeight, TListSeparatorBuilder? listSeparatorBuilder, TListDragProxyDecorator? dragProxyDecorator, TGridMode? grid, TGridDelegateBuilder? gridDelegate}) → TListTheme - Creates a copy of the theme with updated properties.
-
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
-
buildEmptyState(
ColorScheme colors, {IconData icon = Icons.inbox_outlined, String title = 'No data available', dynamic message = 'No items found'}) → Widget - Builds a default empty state widget.
-
buildErrorState(
ColorScheme colors, {IconData icon = Icons.error_outline, required String title, required String message}) → Widget - Builds a default error state widget.