FLUTTER ECOSYSTEM

hatemragab/hash_at_links_detector

哈希@链接检测器 自定义文本以检测'#'_ '@'_ '链接' 支持多种语言

hash_at_links_detector 项目封面
Stars
3
Forks
1
最近推送(UTC)
2022年8月13日
项目状态
未归档
Hatem Ragab GitHub avatar
GITHUB User

Hatem Ragab ↗

node js & flutter developer

EnvatoGiza Egypt
语言C++CMakeDartHTMLCSwiftKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

hash_at_links_detector

https://user-images.githubusercontent.com/37384769/184183782-3460b254-2cef-4404-8393-59b65fd8c9fc.png

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