Search packages, repositories and app categories

GitHub repositoryaleksanderwozniak/link_text

link_text

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

link_text project cover
Stars
24
Forks
20
Last push (UTC)
Feb 17, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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,
        textAlign: TextAlign.center,
        // You can optionally handle link tap event by yourself
        // onLinkTap: (url) => ...
      ),
    ),
  );
}
Installation

Add to pubspec.yaml:

dependencies:
  link_text: ^0.2.1

For more info, check out example project.

Aleksander Woźniak GitHub avatar
GitHub author

Aleksander Woźniak ↗

Flutter and Kotlin enthusiast

LanguagesDartRubySwiftKotlinObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • url_launcher^6.2.4
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗