搜尋套件、儲存庫與 APP 分類

linkwell 封面
套件詳情v2.0.6

linkwell

LinkWell 是一個文字外掛程式,可偵測字串中的 URL 和電子郵件,點擊後會在使用者瀏覽器中開啟

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1150
喜歡數
82
Pub 分數
130

安裝套件

flutter pub add linkwell

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

LinkWell 是一個 Flutter 插件,可自動偵測文字字串中的 URL 和電子郵件地址。當使用者點擊這些連結時,將直接在裝置的預設瀏覽器中開啟。專為豐富文字處理設計,此插件透過讓超連結可互動來提升使用者體驗,無需手動解析或自訂觸控偵測器。該插件支援多個平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,確保跨裝置行為一致。它可與 Flutter 的 Text 小工具無縫整合,讓開發者能以最少設定新增可點擊連結。

適用情境

  • 向應用描述中添加可點擊的連結
  • 在聊天訊息中啟用電子郵件互動
  • 提升富文本內容的可讀性
  • 自動化使用者產生的文字中的連結檢測
  • 在文件視圖中顯示網頁引用

主要特色

  • 自動偵測 URL 與電子郵件
  • 可點擊的連結會在預設瀏覽器中開啟
  • 跨平台相容性
  • 與 Flutter Text 小部件的簡單整合
  • 支援所有主要作業系統

適合對象

  • 動態文字內容的應用程式
  • 聊天或訊息介面
  • 文件或幫助部分
  • 用戶個人檔案簡介帶連結
  • 內容豐富的教育類應用程式

使用建議

  • 不支援自訂連結樣式
  • 僅限 URL 和電子郵件類型
  • 無內建連結預覽
  • 需要手動處理長按或上下文選單
  • 可能需要額外的邏輯來處理深度連結

原始 README

以下為關聯原始碼儲存庫的 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

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

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案