v2.0.6linkwell
LinkWell は、文字列内の URL とメールアドレスを検出し、タップするとユーザーのブラウザで開くテキストプラグインです
LinkWell は、テキスト内のすべてのリンクを強調表示し、タップするとユーザーを URL にナビゲートする Text ウィジェットです。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in user browsers,
linkwell | Basic Usage | Named Links |
|---|---|
![]() |
![]() |
Basic:
import 'package:linkwell/linkwell.dart';
LinkWell(
"Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com"
);
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)
);
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'
},
);
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.
依存関係一覧 3 件
{"sdk":"flutter"}^6.0.3{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗