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,
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) {
if (noMore) {
return '到底了~'.fontSizeText(13).center;
}
return SizedBox(
height: loadIndicatorExtent + 30,
child: const Loading(),
);
}