v0.2.1link_text
適用於 Flutter 應用的易用文字組件,可將內聯 URL 轉換為可點擊連結。支援自訂樣式。
49喜歡 3050近 30 天下載140Pub 分數
AndroidiOSWebmacOSWindowsLinux
適用於 Flutter 應用的易用文字組件,可將內嵌 URL 轉換為可運作的可點擊連結
以下為英文專案原文快照,最新內容請造訪 GitHub。
Easy to use text widget for Flutter apps, which converts inlined URLs into clickable links. Allows custom styling.
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) => ...
),
),
);
}
Add to pubspec.yaml:
dependencies:
link_text: ^0.2.1
For more info, check out example project.
依賴清單 3 項
{"sdk":"flutter"}^6.2.4{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗