パッケージ、リポジトリ、アプリカテゴリを検索

linkwell のカバー
パッケージ詳細v2.0.6

linkwell

LinkWell は、文字列内の URL とメールアドレスを検出し、タップするとユーザーのブラウザで開くテキストプラグインです

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1150
いいね数
82
Pub ポイント
130

パッケージをインストール

flutter pub add linkwell

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

LinkWell は、テキスト文字列内の URL および電子メールアドレスを自動的に検出する Flutter プラグインです。ユーザーがこれらのリンクをタップすると、デバイスのデフォルトブラウザで直接開かれます。豊富なテキスト処理向けに設計されており、手動でのパースやカスタムジェスチャー検出器を必要とせずにハイパーリンクをインタラクティブにする点で、ユーザー体験を向上させます。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、デバイス間で一貫した動作を保証します。Flutter の Text ウィジェットとシームレスに統合され、開発者が最小限のセットアップでクリック可能なリンクを追加できます。

用途

  • アプリの説明にクリック可能なリンクを追加する
  • チャットメッセージでのメール連携を有効にする
  • リッチテキストコンテンツの読みやすさの向上
  • ユーザー生成テキスト内のリンク検出の自動化
  • ドキュメントビューでWeb参照を表示する

主な機能

  • 自動的な 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト