utils_rinch_text 1.0.0 utils_rinch_text: ^1.0.0 copied to clipboard
This method returns a list of TextSpan ideal for formatting long text this implementation supports the following tags, see example.
This method returns a list of TextSpan ideal for formatting long text this implementation supports the following tags, see example.
*bold text*
<a>Link web<a>
<p>add paragraph<p>
Text de example: #
String textExample = """
Flutter is an open source mobile app development framework *created by Google.*
It enables the creation of native apps for *iOS and Android* with a single Dart code base.
With its flexible and performant architecture, *Flutter has become one of the most
popular options for building mobile apps.* 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 exploring the possibilities
of this powerful app development tool.
""";
Implementation #
RichText(
text: TextSpan(
children: UtilsRinchText.generate(textExample),
),
),