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