Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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");
},
),
```