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

Doflatango/link_text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Text

Pub Package

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

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:
  link_text: ^0.1.4

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

No packages published

Languages

  • Dart 80.4%
  • Shell 10.9%
  • Swift 6.2%
  • Kotlin 1.9%
  • Objective-C 0.6%