scrollingBodyBuilder method
Widget
scrollingBodyBuilder(
- BuildContext context,
- SheetState? state,
- ScrollController scrollController,
- int pageIndex,
- bool scrollLock,
Implementation
@override
Widget scrollingBodyBuilder(BuildContext context, SheetState? state, ScrollController scrollController, int pageIndex, bool scrollLock, double footerHeight) {
return Feed(
compact: false,
footerHeight: (this.footerHeight ?? 0) + footerHeight,
scrollController: scrollController,
loader: loaders[pageIndex],
controller: controller.controllerAt(pageIndex),
lengthFactor: lengthFactor,
initialLength: initialLength,
childBuilder: (item, isLast) => itemBuilder(item, pageIndex, isLast),
initiallyLoad: initiallyLoad,
disableScroll: (disableScroll ?? false) || scrollLock,
placeholder: placeholderBuilder(context, state?.extent ?? initialExtent, pageIndex),
loading: loadingBuilder.call(context, pageIndex),
getItemID: getItemID,
wrapper: (context, child, item) => feedWrapperBuilder(context, child, item, pageIndex),
pinnedItems: pinnedItems?.where((e) => e.item2 == pageIndex).toList(),
);
}