FLUTTER ECOSYSTEM

samuelezedi/linkwell

LinkWell은 텍스트 내의 모든 링크를 강조 표시하고 탭 시 사용자를 URL로 이동시키는 Text 위젯입니다.

linkwell 프로젝트 이미지
Stars
33
Forks
28
최근 푸시(UTC)
2024. 2. 29.
프로젝트 상태
활성
Samuel Ezedi GitHub avatar
GITHUB User

Samuel Ezedi ↗

Futurist, Music Junkie and Software Engineer

BDR Group, France.Earth공식 웹사이트 ↗
언어DartObjective-CJava

이 저장소가 배포한 패키지

사용 중인 의존성

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

원본 README

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

README 펼치기 / 접기

LinkWell

LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in user browsers,

linkwell pub package

GitHub

ScreenShots

Basic Usage Named Links
https://raw.githubusercontent.com/samuelezedi/linkwell/master/example/assets/images/sc.jpeg https://raw.githubusercontent.com/samuelezedi/linkwell/master/example/assets/images/sc2.jpeg

Usage

Basic:

import 'package:linkwell/linkwell.dart';
LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com"
);
Add Styling

To add style to links

LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
    linkStyle: TextStyle(color: Colors.blue,fontSize: 17)
);

To add style to non links

LinkWell(
    "Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
    style: TextStyle(color: Colors.black,fontSize: 17)
);
Naming Links

If you would like to name the links

LinkWell(
    "By registering you agree to our samuelezedi.com/terms and samuelezedi.com/privacy",
    listOfNames: {
        'samuelezedi.com/terms' : 'Terms',
        'samuelezedi.com/privacy' : 'Privacy Policy'
    },
);

Why I made this plugin

I was building a chat application and I needed to detect when users posted links and emails so I went online and found a couple plugin but then, only one fit the need, I imported it and discovered that it could not detect emails and long urls correctly and I could not name URLs or emails, So I built LinkWell. I hope this is what you are looking for and it solves your link problems.

Kindly follow me on

twitter medium instagram