utils_rinch_text
このメソッドは、長いテキストのフォーマットに適した TextSpan のリストを返します。この実装では以下のタグがサポートされています。例を参照してください。
- スター
- 2
- フォーク
- 0
- 最終プッシュ(UTC)
- 2023/02/04
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
This method returns a list of TextSpan ideal for formatting long text this implementation supports the following tags, see example.
<a>Link web<a>
<p> add paragraph
Add custom tags
Text de example:
String textExample = """
<i>Flutter<i> is an open source mobile app development framework <l>created by Google.<l>
It enables the creation of native apps for <i>iOS and Android<i> with a single Dart code base.
With its flexible and performant architecture, <o>Flutter has become one of the most
popular options for building mobile apps.<o> In addition, it offers a wide range of widgets
and animated visual effects that help you create attractive and intuitive applications. <p>
For more information about Flutter, head over to the main
page at <a>https://flutter.dev/<a> and start <b>exploring the possibilities<b>
of this powerful app development tool.
""";
Implementation
RichText(
text: TextSpan(
children: UtilsRinchText.generate(
textExample,
customTags: {
"<i>": const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 20,
),
"<l>": const TextStyle(
fontSize: 20,
color: Colors.red,
fontWeight: FontWeight.bold,
),
"<a>": const TextStyle(
color: Colors.green,
fontWeight: FontWeight.bold,
),
"<o>": const TextStyle(
fontWeight: FontWeight.bold,
color: Colors.blue,
fontSize: 20,
),
"<b>": const TextStyle(
fontWeight: FontWeight.bold,
color: Colors.orange,
fontSize: 20,
),
},
),
),
),
言語C++CMakeDartHTMLCObjective-CJavaShellSwiftKotlin
使用している依存関係
依存関係一覧 4 件
- flutter
{"sdk":"flutter"} - url_launcher
^6.1.8 - flutter_test開発用
{"sdk":"flutter"} - flutter_lints開発用
^2.0.0
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
