Search packages, repositories and app categories

styled_text cover
Package detailsv10.0.0

styled_text

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
138K
Likes
483
Pub points
140

Install package

flutter pub add styled_text

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

StyledText is a Flutter package that extends the standard Text widget to support formatted text using HTML-like tags. It enables developers to easily apply styles such as bold, italic, and color within a single text string, simplifying the creation of rich text content. Particularly useful in multilingual applications, it handles dynamic text formatting without requiring complex widget nesting. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform apps needing styled, localized text.

Use cases

  • Displaying formatted user-generated content
  • Creating multilingual app interfaces with styled text
  • Rendering rich text in chat or messaging apps
  • Building documentation or help screens with varied formatting
  • Implementing dynamic UI text with inline styling

Key features

  • Supports HTML-like tags for formatting
  • Easy integration with existing Text widgets
  • Cross-platform compatibility
  • Efficient rendering of styled text
  • Simplifies multilingual text styling

Suitable for

  • Developers building multilingual apps
  • Teams needing rich text without complex widget trees
  • Apps with dynamic or user-generated content
  • UI designers requiring flexible text styling
  • Cross-platform projects targeting multiple operating systems

Considerations

  • Limited to basic formatting tags
  • Does not support advanced HTML features
  • Performance may degrade with very large text blocks
  • Requires careful handling of nested tags
  • Not suitable for highly complex document rendering

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

StyledText

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.

Formatting is set in the text using xml tags, for which styles are defined separately. It is also possible to insert icons through tags for which icons are set in styles.

You can set the click handler for the tag, through a special style ActionTextStyle.

See more

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package