fixed section header mismatch
This commit is contained in:
parent
6f31f03451
commit
f5f13527fa
1 changed files with 5 additions and 3 deletions
|
@ -108,16 +108,18 @@ class SectionHeader extends StatelessWidget {
|
|||
child: albumIcon,
|
||||
);
|
||||
}
|
||||
var title = collection.getUniqueAlbumName(sectionKey as String, sections.keys.cast<String>());
|
||||
header = TitleSectionHeader(
|
||||
key: ValueKey(title),
|
||||
leading: albumIcon,
|
||||
title: collection.getUniqueAlbumName(sectionKey as String, sections.keys.cast<String>()),
|
||||
title: title,
|
||||
);
|
||||
break;
|
||||
case GroupFactor.month:
|
||||
header = MonthSectionHeader(date: sectionKey as DateTime);
|
||||
header = MonthSectionHeader(key: ValueKey(sectionKey), date: sectionKey as DateTime);
|
||||
break;
|
||||
case GroupFactor.day:
|
||||
header = DaySectionHeader(date: sectionKey as DateTime);
|
||||
header = DaySectionHeader(key: ValueKey(sectionKey), date: sectionKey as DateTime);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue