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