Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 30 days 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T15:25:04.000Z (over 2 years ago)
- Last Synced: 2024-12-11T13:30:32.720Z (about 1 month ago)
- Topics: dart, flutter, flutter-plugin
- Language: C++
- Homepage: https://pub.dev/packages/hash_at_links_detector
- Size: 205 KB
- Stars: 3
- Watchers: 2
- 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");
},
),
```