link_text 0.1.6 copy "link_text: ^0.1.6" to clipboard
link_text: ^0.1.6 copied to clipboard

outdated

Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.

LinkText #

Pub Package

Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.

Image

Usage #

LinkText widget does not require any setup. Simply pass a String with inlined URLs, and the widget will take care of the rest.

final String _text = 'Lorem ipsum https://flutter.dev\nhttps://pub.dev';

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: LinkText(
        text: _text,
        textAlign: TextAlign.center,
        // You can optionally handle link tap event by yourself
        // onLinkTap: (url) => ...
      ),
    ),
  );
}

Installation #

Add to pubspec.yaml:

dependencies:
  link_text: ^0.1.6

For more info, check out example project.

45
likes
0
pub points
92%
popularity

Publisher

unverified uploader

Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, url_launcher

More

Packages that depend on link_text