Skip to content

Commit

Permalink
Add missing ClipRect to watched threads list
Browse files Browse the repository at this point in the history
  • Loading branch information
moffatman committed Nov 18, 2023
1 parent 48abd1e commit 1005cfe
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions lib/pages/saved.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,40 +375,42 @@ class _SavedPageState extends State<SavedPage> {
return const SizedBox.shrink();
}
else {
return ThreadRow(
thread: threadState!.thread!,
isSelected: isSelected,
contentFocus: settings.useCatalogGrid,
showBoardName: true,
showSiteIcon: true,
showPageNumber: true,
forceShowInHistory: true,
dimReadThreads: watch.item.zombie,
onThumbnailLoadError: (error, stackTrace) {
watch.imageboard.threadWatcher.fixBrokenThread(watch.item.threadIdentifier);
},
semanticParentIds: const [-4],
onThumbnailTap: (initialAttachment) {
final attachments = {
for (final w in _watchedListController.items)
for (final attachment in w.item.imageboard.persistence.getThreadStateIfExists(w.item.item.threadIdentifier)?.thread?.attachments ?? <Attachment>[])
attachment: w.item.imageboard.persistence.getThreadStateIfExists(w.item.item.threadIdentifier)!
};
showGallery(
context: context,
attachments: attachments.keys.toList(),
replyCounts: {
for (final item in attachments.entries) item.key: item.value.thread!.replyCount
},
initialAttachment: attachments.keys.firstWhere((a) => a.id == initialAttachment.id),
onChange: (attachment) {
final threadId = attachments.entries.firstWhere((_) => _.key.id == attachment.id).value.identifier;
_watchedListController.animateTo((p) => p.item.threadIdentifier == threadId);
},
semanticParentIds: [-4],
heroOtherEndIsBoxFitCover: settings.useCatalogGrid || settings.squareThumbnails
);
}
return ClipRect(
child: ThreadRow(
thread: threadState!.thread!,
isSelected: isSelected,
contentFocus: settings.useCatalogGrid,
showBoardName: true,
showSiteIcon: true,
showPageNumber: true,
forceShowInHistory: true,
dimReadThreads: watch.item.zombie,
onThumbnailLoadError: (error, stackTrace) {
watch.imageboard.threadWatcher.fixBrokenThread(watch.item.threadIdentifier);
},
semanticParentIds: const [-4],
onThumbnailTap: (initialAttachment) {
final attachments = {
for (final w in _watchedListController.items)
for (final attachment in w.item.imageboard.persistence.getThreadStateIfExists(w.item.item.threadIdentifier)?.thread?.attachments ?? <Attachment>[])
attachment: w.item.imageboard.persistence.getThreadStateIfExists(w.item.item.threadIdentifier)!
};
showGallery(
context: context,
attachments: attachments.keys.toList(),
replyCounts: {
for (final item in attachments.entries) item.key: item.value.thread!.replyCount
},
initialAttachment: attachments.keys.firstWhere((a) => a.id == initialAttachment.id),
onChange: (attachment) {
final threadId = attachments.entries.firstWhere((_) => _.key.id == attachment.id).value.identifier;
_watchedListController.animateTo((p) => p.item.threadIdentifier == threadId);
},
semanticParentIds: [-4],
heroOtherEndIsBoxFitCover: settings.useCatalogGrid || settings.squareThumbnails
);
}
)
);
}
}
Expand Down

0 comments on commit 1005cfe

Please sign in to comment.