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) {
|
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--;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue