From a89de0fb0cbe5dacbcaadfcbb9d833bd5bd25ec8 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Sun, 12 Apr 2020 11:09:47 +0900 Subject: [PATCH] minor fix --- lib/widgets/album/collection_list_sliver.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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--;