fixed logbook list updates

This commit is contained in:
Vadim 2025-07-10 16:18:12 +02:00
parent ca6b921b6b
commit 84c8973690
2 changed files with 2 additions and 2 deletions

View file

@ -122,5 +122,5 @@ class LogbookPhotos extends InheritedWidget {
}
@override
bool updateShouldNotify(LogbookPhotos oldWidget) => const DeepCollectionEquality().equals(oldWidget.photos, photos);
bool updateShouldNotify(LogbookPhotos oldWidget) => !const DeepCollectionEquality().equals(oldWidget.photos, photos);
}

View file

@ -22,7 +22,7 @@ class _LogbookScreenState extends State<LogbookScreen> with SingleTickerProvider
title: Text(S.of(context).logbook),
slivers: [
_PicturesGridBuilder(
values: LogbookPhotos.of(context),
values: LogbookPhotos.of(context, listen: true),
onEdit: _editProfile,
),
SliverToBoxAdapter(