From f5f13527fa06e42066cd48ddac3ee341bf77941f Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Fri, 17 Jan 2020 18:00:21 +0900 Subject: [PATCH] fixed section header mismatch --- lib/widgets/album/collection_section.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/widgets/album/collection_section.dart b/lib/widgets/album/collection_section.dart index 4b75e9ae3..7c3c67695 100644 --- a/lib/widgets/album/collection_section.dart +++ b/lib/widgets/album/collection_section.dart @@ -108,16 +108,18 @@ class SectionHeader extends StatelessWidget { child: albumIcon, ); } + var title = collection.getUniqueAlbumName(sectionKey as String, sections.keys.cast()); header = TitleSectionHeader( + key: ValueKey(title), leading: albumIcon, - title: collection.getUniqueAlbumName(sectionKey as String, sections.keys.cast()), + 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; } }