contentBuilder method
Widget
contentBuilder(
- BuildContext context,
- LoadMode loadState,
- double pulledExtent,
- double loadTriggerPullDistance,
- double loadIndicatorExtent,
- AxisDirection axisDirection,
- bool float,
- Duration? completeDuration,
- bool enableInfiniteLoad,
- bool success,
- bool noMore,
override
Implementation
@override
Widget contentBuilder(
BuildContext context,
LoadMode loadState,
double pulledExtent,
double loadTriggerPullDistance,
double loadIndicatorExtent,
AxisDirection axisDirection,
bool float,
Duration? completeDuration,
bool enableInfiniteLoad,
bool success,
bool noMore) {
// 不能为水平方向
assert(
axisDirection == AxisDirection.down ||
axisDirection == AxisDirection.up,
'Widget cannot be horizontal');
linkNotifier.contentBuilder(
context,
loadState,
pulledExtent,
loadTriggerPullDistance,
loadIndicatorExtent,
axisDirection,
float,
completeDuration,
enableInfiniteLoad,
success,
noMore);
return BallPulseFooterWidget(
key: key,
color: color,
backgroundColor: backgroundColor,
linkNotifier: linkNotifier,
);
}