v1.0.1hash_at_links_detector
哈希@链接检测器 自定义文本以检测'#'_ '@'_ '链接' 支持多种语言
21喜欢 39近 30 天下载70Pub 分数
平台暂无数据
哈希@链接检测器 自定义文本以检测'#'_ '@'_ '链接' 支持多种语言
{"sdk":"flutter"}{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
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");
},
),