diff --git a/lib/widgets/album/collection_list_sliver.dart b/lib/widgets/album/collection_list_sliver.dart index 7e559da5e..daf365409 100644 --- a/lib/widgets/album/collection_list_sliver.dart +++ b/lib/widgets/album/collection_list_sliver.dart @@ -59,11 +59,13 @@ class CollectionListSliver extends StatelessWidget { builder: (context, listIndex) { listIndex -= sectionFirstIndex; if (listIndex == 0) { - return SectionHeader( - collection: collection, - sections: sections, - sectionKey: sectionKey, - ); + return showHeader + ? SectionHeader( + collection: collection, + sections: sections, + sectionKey: sectionKey, + ) + : const SizedBox.shrink(); } listIndex--;