scrollingBodyBuilder method

  1. @override
Widget scrollingBodyBuilder(
  1. BuildContext context,
  2. SheetState? state,
  3. ScrollController scrollController,
  4. int pageIndex,
  5. bool scrollLock,
  6. double footerHeight,
)

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(),
  );
}