Skip to content

게시글 댓글 스타일 수정 및 댓글에 대한 하이퍼 링크 구현#150

Merged
wonyong-park merged 2 commits intomainfrom
linkify
Feb 5, 2026
Merged

게시글 댓글 스타일 수정 및 댓글에 대한 하이퍼 링크 구현#150
wonyong-park merged 2 commits intomainfrom
linkify

Conversation

@MTtankkeo
Copy link
Member

간단한 요약

해당 PR 에서는 게시글의 링크 스타일을 웹 스타일과 동일하게 설정하고 flutter_linkify 패키지를 사용하여 댓글에 대한 하이퍼 링크를 구현합니다용.

@gemini-code-assist
Copy link

Summary of Changes

Hello @MTtankkeo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 사용자 경험을 개선하기 위해 게시글과 댓글 내 링크 처리 방식을 표준화합니다. 게시글 본문의 링크 스타일을 웹과 동일하게 시각적으로 통일하고, 댓글에는 flutter_linkify 패키지를 활용하여 자동으로 인식되는 클릭 가능한 하이퍼링크 기능을 추가하여 정보 접근성을 높였습니다.

Highlights

  • 새로운 링크 색상 정의: 하이퍼링크에 사용될 AppColor.link 색상을 추가했습니다.
  • 댓글 하이퍼링크 기능 구현: flutter_linkify 패키지를 사용하여 댓글 내용 내에서 자동으로 URL을 감지하고 클릭 가능한 하이퍼링크로 변환하도록 구현했습니다.
  • 링크 클릭 시 외부 브라우저 연결: url_launcher 패키지를 통해 댓글 내 하이퍼링크 클릭 시 해당 URL을 외부 브라우저로 열도록 설정했습니다.
  • 게시글 링크 스타일 통일: 게시글 본문 내 <a> 태그의 스타일을 웹 표준과 유사하게 파란색(AppColor.link)으로 표시하고 밑줄을 제거하도록 변경했습니다.
Changelog
  • lib/app/config/app_color.dart
    • 하이퍼링크에 사용될 link 색상(0xFF0000EF)을 추가했습니다.
  • lib/presentation/comment/widget/comment_widget.dart
    • flutter_linkifyurl_launcher 패키지를 임포트했습니다.
    • 댓글 내용을 표시하는 TextSpanLinkifySpan으로 변경하여 URL 자동 감지 및 클릭 기능을 활성화했습니다.
    • 링크 스타일을 AppColor.link로 설정하고, 클릭 시 url_launcher를 사용하여 URL을 열도록 onOpen 콜백을 구현했습니다.
  • lib/presentation/post_detail/view/post_content_view.dart
    • color_util.dart를 임포트했습니다.
    • 게시글 본문 렌더링 시 <a> 태그에 대한 스타일 규칙을 추가하여 AppColor.link 색상을 적용하고 텍스트 장식을 제거했습니다.
  • pubspec.yaml
    • flutter_linkify 패키지 의존성을 추가했습니다.
Activity
  • 현재까지 특별한 활동은 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

PR의 목표에 맞게 flutter_linkify를 사용하여 댓글에 하이퍼링크 기능을 구현하고, 게시물 내용의 링크 스타일을 수정한 점이 좋습니다. 코드는 전반적으로 명확하며 목적을 잘 달성하고 있습니다. 링크 처리 로직을 더 견고하게 만들기 위한 한 가지 제안 사항이 있습니다.

@wonyong-park wonyong-park merged commit ea8139c into main Feb 5, 2026
1 check passed
@wonyong-park wonyong-park deleted the linkify branch February 11, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants