fixed section header icons mismatch on sort
This commit is contained in:
parent
f489546a48
commit
a09ffffacc
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ class ThumbnailCollectionContent extends StatelessWidget {
|
|||
if (appBar != null) appBar,
|
||||
...sectionKeys.map((sectionKey) {
|
||||
Widget sliver = SectionSliver(
|
||||
key: UniqueKey(),
|
||||
// need key to prevent section header mismatch
|
||||
// but it should not be unique key, otherwise sections are rebuilt when changing page
|
||||
key: ValueKey(sectionKey),
|
||||
collection: collection,
|
||||
sections: _sections,
|
||||
sectionKey: sectionKey,
|
||||
|
|
Loading…
Reference in a new issue