https://github.com/hatemragab/hash_at_links_detector
hash at links detector Custom text to detect '#'_'@'_'links' support many languages
https://github.com/hatemragab/hash_at_links_detector
dart flutter flutter-plugin
Last synced: 3 months ago
JSON representation
hash at links detector Custom text to detect '#'_'@'_'links' support many languages
- Host: GitHub
- URL: https://github.com/hatemragab/hash_at_links_detector
- Owner: hatemragab
- License: mit
- Created: 2020-10-25T12:01:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T15:25:04.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T12:44:39.540Z (3 months ago)
- Topics: dart, flutter, flutter-plugin
- Language: C++
- Homepage: https://pub.dev/packages/hash_at_links_detector
- Size: 205 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hash_at_links_detector
You can use `CustomSmartText` to detect # @ links text.
```dart
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");
},
),
```