Search categories, packages and repositories

hash_at_links_detector cover
Package detailsv1.0.1

hash_at_links_detector

hash at links detector Custom text to detect '#'_'@'_'links' support many languages

30-day downloads
15
Likes
21
Pub points
70

Install package

flutter pub add hash_at_links_detector

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package designed to detect hashtags (#), mentions (@), and URLs within text, supporting multiple languages. It enables developers to identify and process social media-style text elements in user input or displayed content. The package is lightweight and integrates seamlessly into text widgets, making it ideal for social networking apps, comment sections, or chat interfaces. It enhances user experience by allowing automatic linking and styling of detected elements.

Use cases

  • Social media app feeds
  • User comment parsing
  • Chat application message processing
  • Content tagging systems
  • Multilingual text analysis

Key features

  • Detects #hashtags, @mentions, and links
  • Supports multiple languages
  • Lightweight and easy to integrate
  • Customizable detection patterns
  • Real-time text analysis

Suitable for

  • Flutter apps with social features
  • Text input with dynamic tagging
  • Multilingual user-generated content
  • Chat or messaging platforms
  • Content moderation tools

Considerations

  • Does not include styling or navigation logic
  • Requires manual handling of tap events
  • Limited to basic pattern matching
  • No built-in support for custom delimiters
  • Depends on external text rendering for UI

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

hash_at_links_detector

You can use CustomSmartText to detect # @ links text.

         CustomSmartText(
                  text:
                  "@flutter test @hatem ragap #flutter #Dart \n https://pub.dev \n hi hello \n h hello \n s #فلاتر\n @حاتم",
                  atStyle: TextStyle(color: Colors.red),
                  disableAt: false,
                  onTagClick: (tag) {
                    if (tag == "Dart") {
                      print("Dart is  $tag");
                    } else {
                      print("tag is  $tag");
                    }
                  },
                   onUrlClicked: (open) {
                    // launch  url
                    print("opened $open");
                  },
                  onAtClick: (at) {
                    print("at is  $at");
                  },
                ),

Categories

Source repository

Projects using this package

No data available yet.