FLUTTER ECOSYSTEM

hatemragab/hash_at_links_detector

hash at links detector Custom text to detect '#'_'@'_'links' support many languages

hash_at_links_detector project cover
Stars
3
Forks
1
Last push (UTC)
Aug 13, 2022
Project status
Active
Hatem Ragab GitHub avatar
GITHUB User

Hatem Ragab ↗

node js & flutter developer

EnvatoGiza Egypt
LanguagesC++CMakeDartHTMLCSwiftKotlinObjective-C

Technical topics

Packages published by this repository

Dependencies used

Dependency list 2 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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");
                  },
                ),