Skip to content

Make URLs in chat messages tappable #52

Description

@MrSurly

Summary

URLs in chat message text are rendered as plain text. They should be detected and rendered as tappable links that open in the device's default browser.

Desired behavior

  • Messages containing URLs (e.g. https://example.com or bare www.example.com) should display them underlined/highlighted
  • Tapping a URL opens it in the external browser
  • Trailing sentence punctuation (period, comma, etc.) should not be included in the matched URL

Implementation notes

The relevant widget is lib/widgets/chat_message_text.dart, which already parses #hashtag and @mention tokens using a regex and TapGestureRecognizer. URL detection can be added as another token type in the same pattern. The url_launcher package handles cross-platform browser launches.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions