FLUTTER ECOSYSTEM

hatemragab/hash_at_links_detector

ハッシュとリンク検出器 カスタムテキストで '#'_ '@'_ 'リンク' を検出可能 複数の言語をサポート

hash_at_links_detector のプロジェクト画像
Stars
3
Forks
1
最終プッシュ(UTC)
2022/08/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");
                  },
                ),