minor fix
This commit is contained in:
parent
ddb282579d
commit
a89de0fb0c
1 changed files with 7 additions and 5 deletions
|
@ -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--;
|
||||
|
||||
|
|
Loading…
Reference in a new issue