From 3071dba4dba787bf0664deb290ee16bbe499480c Mon Sep 17 00:00:00 2001 From: idubnori Date: Sat, 25 Oct 2025 02:22:17 +0900 Subject: [PATCH] refactorr: rename methods for clarity in comment bubble widget --- .../lib/presentation/pages/drift_activities.page.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile/lib/presentation/pages/drift_activities.page.dart b/mobile/lib/presentation/pages/drift_activities.page.dart index fe69480ec7..753e5af431 100644 --- a/mobile/lib/presentation/pages/drift_activities.page.dart +++ b/mobile/lib/presentation/pages/drift_activities.page.dart @@ -145,8 +145,8 @@ class _CommentBubble extends ConsumerWidget { ); } - // Heart-only widget (for likes without asset) - Widget? likedToAlbum() { + // Likes Album widget (for likes without asset) + Widget? likesToAlbum() { if (!isLike || hasAsset) return null; return Container( padding: const EdgeInsets.all(8), @@ -155,7 +155,7 @@ class _CommentBubble extends ConsumerWidget { ); } - // Comment bubble; for comment-only we constrain width to ~50%. + // Comment bubble, comment-only Widget? commentBubble() { if (activity.comment == null || activity.comment!.isEmpty) return null; return ConstrainedBox( @@ -171,8 +171,8 @@ class _CommentBubble extends ConsumerWidget { ); } - // Combined content: optional thumbnail, optional heart-only, optional comment - final List contentChildren = [thumbnail(), likedToAlbum(), commentBubble()].whereType().toList(); + // Combined content widgets + final List contentChildren = [thumbnail(), likesToAlbum(), commentBubble()].whereType().toList(); return DismissibleActivity( onDismiss: canDelete ? (id) async => await activityNotifier.removeActivity(id) : null,