FLUTTER ECOSYSTEM

aleksanderwozniak/link_text

Einfach zu verwendendes Text-Widget für Flutter-Apps, das eingebettete URLs in funktionierende, klickbare Links umwandelt

Projektcover von link_text
Stars
24
Forks
20
Letzter Push (UTC)
17.02.2024
Projektstatus
Aktiv
Aleksander Woźniak GitHub avatar
GITHUB User

Aleksander Woźniak ↗

Flutter and Kotlin enthusiast

SprachenDartRubySwiftKotlinObjective-C

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge
  • flutter{"sdk":"flutter"}
  • url_launcher^6.2.4
  • flutter_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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.