Skip to content

Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links

License

Notifications You must be signed in to change notification settings

Sorunome/matrix_link_text

 
 

Repository files navigation

THIS IS A FORK FROM https://github.com/kate-shine/link_text

Matrix Link Text

Pub Package

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

Optimized for matrix, so it also linkifies matrix identifiers!

Image

Usage

Link Text widget requires no setup. Just 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 handle link click event by your self, this is optional
        // onLinkTap: (url) => ...
      ),
    ),
  );
}

Installation

Add to pubspec.yaml:

dependencies:
  matrix_link_text: ^2.0.0

For more info, check out example project.

About

Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dart 69.8%
  • CMake 12.9%
  • C++ 7.4%
  • HTML 6.3%
  • C 1.2%
  • Swift 1.2%
  • Other 1.2%