minor fix

This commit is contained in:
Thibault Deckers 2020-04-12 11:09:47 +09:00
parent ddb282579d
commit a89de0fb0c

View file

@ -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--;