utils_rinch_text
이 메서드는 긴 텍스트를 형식화하는 데 적합한 TextSpan 목록을 반환합니다. 이 구현은 다음 태그를 지원합니다. 예제를 참조하세요.
- 스타
- 2
- 포크
- 0
- 최근 푸시(UTC)
- 2023. 2. 4.
- 프로젝트 상태
- 활성
원본 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 ↗
