SkeletonFooter class

A load-more footer that renders shimmering skeleton rows instead of a spinner.

The default height is tuned for three BoneListTile rows. When changing skeletonCount or using a taller custom boneBuilder, update height to avoid clipping the skeleton content while loading.

Inheritance

Constructors

SkeletonFooter({Key? key, int skeletonCount = 3, SkeletonBoneStyle boneStyle = SkeletonBoneStyle.listTile, Widget boneBuilder(BuildContext context, int index)?, LinearGradient? shimmerGradient, Duration fadeInDuration = const Duration(milliseconds: 200), Duration fadeOutDuration = const Duration(milliseconds: 150), String? semanticsLabel, String? semanticsHint, LoadStyle loadStyle = LoadStyle.ShowWhenLoading, double height = 160.0})
Creates a SkeletonFooter.
const
SkeletonFooter.staggered({Key? key, int skeletonCount = 3, SkeletonBoneStyle boneStyle = SkeletonBoneStyle.listTile, Widget boneBuilder(BuildContext context, int index)?, LinearGradient? shimmerGradient, Duration fadeInDuration = const Duration(milliseconds: 240), Duration fadeOutDuration = const Duration(milliseconds: 150), String? semanticsLabel, String? semanticsHint, LoadStyle loadStyle = LoadStyle.ShowWhenLoading, double height = 160.0})
Creates a SkeletonFooter whose rows fade in sequentially.
const

Properties

boneBuilder Widget Function(BuildContext context, int index)?
Builds a custom skeleton row for the given index.
final
boneStyle SkeletonBoneStyle
The built-in skeleton layout to use when boneBuilder is null.
final
fadeInDuration Duration
The fade-in duration used when loading begins.
final
fadeOutDuration Duration
The fade-out duration used before the footer collapses.
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the indicator's visual extent.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadStyle LoadStyle
The display style of the loading footer.
finalinherited
onClick VoidCallback?
A callback triggered when the user clicks the footer.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticsHint String?
Custom accessibility hint for the indicator.
final
semanticsLabel String?
Custom accessibility label for the indicator.
final
shimmerGradient LinearGradient?
Overrides the default light or dark shimmer gradient.
final
skeletonCount int
The number of skeleton rows to render while loading.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited