assetListBuilder method

Widget assetListBuilder(
  1. BuildContext context,
  2. DefaultAssetPickerProvider provider,
  3. ScrollController scrollController,
  4. bool scrollLock,
  5. double footerHeight,
)

Implementation

Widget assetListBuilder(BuildContext context, DefaultAssetPickerProvider provider, ScrollController scrollController, bool scrollLock, double footerHeight){
  return delegate.albumMenuBuilder(context, provider.currentPathEntity?.name ?? '', provider.pathEntityList, scrollController, scrollLock, footerHeight, (AssetPathEntity entity){
    provider.currentPathEntity = entity;
    if(pageCubit.state){
      pageCubit.emit(false);
      sheetController.pop();
    }
    provider.getAssetsFromEntity(0, entity);
  });
}