FLUTTER ECOSYSTEM

aleksanderwozniak/link_text

Flutter 앱용으로 사용하기 쉬운 텍스트 위젯으로, 내장된 URL을 작동하는 클릭 가능한 링크로 변환합니다

링크 텍스트 프로젝트 이미지
Stars
24
Forks
20
최근 푸시(UTC)
2024. 2. 17.
프로젝트 상태
활성
Aleksander Woźniak GitHub avatar
GITHUB User

Aleksander Woźniak ↗

Flutter and Kotlin enthusiast

언어DartRubySwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • url_launcher^6.2.4
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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.