linkfy_text 1.0.0 copy "linkfy_text: ^1.0.0" to clipboard
linkfy_text: ^1.0.0 copied to clipboard

outdated

A lightweight flutter package to linkify texts containing urls, emails and hashtags.

A lightweight flutter package to linkify texts containing urls, emails and hashtags.

Using #

// first import the package
import 'package:linkfy_text/linkify_text.dart';


           LinkifyText(
              "This text contains a url: https://flutter.dev",
              linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
              onTap: (link) {
                print("${link.value}");
                },
            );

Be default, The above snippet would linkify all urls in the string, you can choose whatxw type of link to linkify by passing the linkTypes parameter

        LinkifyText(
              "This text contains an #hashtag",
              linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
              linkTypes: [LinkType.hashtag]
              onTap: (link) {
                print("${link.value}");
                },
            );
58
likes
0
pub points
91%
popularity

Publisher

unverified uploader

A lightweight flutter package to linkify texts containing urls, emails and hashtags.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on linkfy_text