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) { builder: (context, listIndex) {
listIndex -= sectionFirstIndex; listIndex -= sectionFirstIndex;
if (listIndex == 0) { if (listIndex == 0) {
return SectionHeader( return showHeader
collection: collection, ? SectionHeader(
sections: sections, collection: collection,
sectionKey: sectionKey, sections: sections,
); sectionKey: sectionKey,
)
: const SizedBox.shrink();
} }
listIndex--; listIndex--;