Skip to main content

wx_text 3.1.0 copy "wx_text: ^3.1.0" to clipboard
wx_text: ^3.1.0 copied to clipboard

A powerful widget that builds upon the familiar Flutter Text widget, offering additional functionalities for a richer text display experience.

3.1.0 #

  • Dependency: Upgraded to animated_repeatable: ^1.2.0 with support for disableAnimations.
  • SDK Alignment: Updated environment SDK constraint to sdk: '>=3.0.0 <4.0.0' and upgraded to flutter_lints: ^5.0.0.
  • New Filters: Added WxTextFilter.mention and WxTextFilter.hashtag for social text parsing.
  • Bug Fix: Fixed onExpanded callback not being invoked in WxSpoilerText.
  • Stability: Refactored WxSpoilerText to maintain expanded state across parent widget rebuilds and properly dispose WxSpoilerController.
  • Low-Level Layout: Replaced ConstrainedText dummy newline stack with direct line-height measurement (TextPainter.preferredLineHeight) via ConstrainedBox.
  • Fidelity: Upgraded OutlinedText to preserve InlineSpan (highlights, email/URL/mention filters, custom spans) across stroke outline rendering.
  • Performance: Optimized WxText.build by removing nested WxTextStyler wrapper layers and caching regex compilation in ParsedText.
  • Documentation: Overhauled README.md with complete code snippets for all features and typography presets.
  • Testing: Added comprehensive test suite covering all typography variants, filters, outlines, gradients, and spoiler interactions.

3.0.0 #

  • Added supports for text outline and gradient
  • Added supports for animated text
  • Added style shortcuts
  • Added constructor to create from another instance configuration
  • Added option to debug min lines
  • Refactor spoiler text, use maxLines instead of trimLines, renamed builder to wrapper
  • Refactor parsed text, added base text, and added selectionColor

2.0.2 #

  • Adjust sdk constraints

2.0.1 #

  • Removed screenshots and example to reduces package size

2.0.0 #

  • Changed parameter highlightCaseSensitive with filterCaseSensitive
  • Implemented an advanced text parsing widget with pattern highlighting capabilities
  • Added spoiler text

1.0.0 #

  • Inherits all the functionalities of the standard Text widget.
  • Defines the minimum number of lines the widget will always display.
  • Allows users to select and highlight specific portions of the text.
  • Provides access to a set of pre-defined text styles commonly used in user interfaces.
13
likes
150
points
161
downloads

Documentation

API reference

Publisher

verified publisherwidgetarian.com

Weekly Downloads

A powerful widget that builds upon the familiar Flutter Text widget, offering additional functionalities for a richer text display experience.

Repository (GitHub)
View/report issues

Topics

#text #spoiler #highlighted #annotation #widgetarian

Funding

Consider supporting this project:

buymeacoffee.com
ko-fi.com

License

BSD-3-Clause (license)

Dependencies

animated_repeatable, flutter

More

Packages that depend on wx_text