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 ChangeNotifierProvider<DefaultAssetPickerProvider>.value(
value: provider,
builder: (BuildContext context, _){
return Selector<DefaultAssetPickerProvider, bool>(
selector: (_, DefaultAssetPickerProvider provider) => provider.hasAssetsToDisplay,
builder: (_, bool hasAssetsToDisplay, __) {
return hasAssetsToDisplay ? assetsGridBuilder(context, scrollController, scrollLock, footerHeight) : delegate.imageLoadingIndicator(context) ?? exampleLoadingIndicator(context);
}
);
},
);
}