単語選択可能なテキスト
EyrisCrafts/wordSelectableText open-source repository details.
- スター
- 16
- フォーク
- 2
- 最終プッシュ(UTC)
- 2021/08/01
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
WordSelectableText
This is a Text Widget that supports word highlighting and selection. It provides an onWordTapped function that gives you access to the word selected by the user.
HighLight Word
You can highlight the word in any color using the highlightColor argument.
Language support
The widget uses a regex of alphabet set to select words. For English, regex used is [a-zA-Z]
Example
@override
Widget build(BuildContext context) {
String textToShow =
"Dermatology is the branch of medicine dealing with the skin. It is a speciality with both medical and surgical aspects. A dermatologist is a specialist doctor who manages diseases related to skin, hair and nails and some cosmetic problems.";
return Scaffold(
appBar: AppBar(title: Text("widget testing"),),
body: Container(
padding: EdgeInsets.all(40),
width: double.infinity,
child: WordSelectableText(
selectable: true,
highlight: true,
text: textToShow,
onWordTapped: (word, index) {},
style: TextStyle(fontSize: 20)
)),
);
}

言語Dart
使用している依存関係
依存関係一覧 2 件
- flutter
{"sdk":"flutter"} - flutter_test開発用
{"sdk":"flutter"}
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗