feat: add dual comment button behavior in post action bar

Split comment button functionality into two separate actions:
- Left button (comment input field): Opens reply composer
- Right button (comment count): Scrolls to comments section

This provides contextual behavior - users can either write a new
comment or quickly navigate to view existing comments.

Changes:
- Add onCommentInputTap and onCommentCountTap callbacks
- Maintain backward compatibility with deprecated onCommentTap
- Update documentation to clarify each button's purpose

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Changed files
+16 -4
lib
+16 -4
lib/widgets/post_action_bar.dart
···
/// Bottom bar with comment input and action buttons (vote, save,
/// comment count).
/// Displays:
-
/// - Comment input field
+
/// - Comment input field (opens composer when tapped)
/// - Heart icon with vote count
/// - Star icon with save count
-
/// - Comment bubble icon with comment count
+
/// - Comment bubble icon with comment count (scrolls to comments when tapped)
class PostActionBar extends StatelessWidget {
const PostActionBar({
required this.post,
this.onCommentTap,
+
this.onCommentInputTap,
+
this.onCommentCountTap,
this.onVoteTap,
this.onSaveTap,
this.isVoted = false,
···
});
final FeedViewPost post;
+
+
/// Deprecated: Use onCommentInputTap and onCommentCountTap instead
final VoidCallback? onCommentTap;
+
+
/// Callback when comment input field is tapped (typically opens composer)
+
final VoidCallback? onCommentInputTap;
+
+
/// Callback when comment count button is tapped (typically scrolls to
+
/// comments)
+
final VoidCallback? onCommentCountTap;
+
final VoidCallback? onVoteTap;
final VoidCallback? onSaveTap;
final bool isVoted;
···
// Comment input field
Expanded(
child: GestureDetector(
-
onTap: onCommentTap,
+
onTap: onCommentInputTap ?? onCommentTap,
child: Container(
height: 40,
padding: const EdgeInsets.symmetric(horizontal: 12),
···
_ActionButton(
icon: Icons.chat_bubble_outline,
count: post.post.stats.commentCount,
-
onTap: onCommentTap,
+
onTap: onCommentCountTap ?? onCommentTap,
),
],
),