NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1124 most downloaded on pub.dev
Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.
Last release 2 months ago
27 Jul 2026
Release timing varies
gaps range from 3 weeks to 1.6 years
Most releases are documented
notes for 27 of 32 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
39 releases · first in 2019
Bump xml dependency to ^7.0.0 for compatibility with packages that require xml 7 (e.g. pdf / printing). Thanks to @mohanedy.
xml dependency to ^7.0.0 for compatibility with packages that require xml 7 (e.g. pdf / printing). Thanks to @mohanedy.* Flutter 3.38 compatibility.
One column per quarter.
Fixed a bug in asynchronous parsing of tag attributes - the last set of attributes "stuck" in nested tags. Thanks to @Mithos5r, @rambah and @Merlin1st
The constructors of some widgets and classes are now constant:
Text parsing has been changed from asynchronous to synchronous. This fixes an issue with the StyledText widget resizing when text parsing is complete,
StyledText widget resizing when text parsing is complete, which was causing problems in lists.
To return asynchronous parsing, the async parameter has been added to the StyledText constructor.
This change was made possible thanks to the help of @Maatteogekko.A new base widget, CustomStyledText, has been added that allows you to implement the construction of a RichText widget, for example, when using the Au
CustomStyledText, has been added that allows you to implement the construction of a RichText widget, for example, when using the AutoSizeText widget (thanks to @maeddin).A new parameter has been added to the builder signature of the StyledTextWidgetBuilderTag widget: textContent - the text content of the tag; thanks to
A new parameter has been added to the builder signature of the StyledTextWidgetBuilderTag widget: textContent - the text content of the tag; thanks to @ThomasGysemans.
Usage example:
StyledText(
text: "Famous equation: E=mc<sup>2</sup>",
tags: {
'sup': StyledTextWidgetBuilderTag(
(_, attributes, textContent) {
return Transform.translate(
offset: const Offset(0.5, -4),
child: Text(
textContent ?? "",
textScaleFactor: 0.85,
),
);
},
),
},
),
In StyledText.selectable, the toolbarOptions parameter has been deprecated.
contextMenuBuilder, selectionControls, selectionHeightStyle, selectionWidthStyle, onSelectionChanged, magnifierConfiguration, semanticsLabel have been added to StyledText.selectable.StyledText.selectable, the toolbarOptions parameter has been deprecated.Added support for SelectionArea.
SelectionArea.Fixed a bug that caused building after dispose.
StyledText now reacts to theme and default text style changes.
StyledText now reacts to theme and default text style changes.Nothing published for this version
[Breaking Changes] Removed deprecated widgets and classes from version 2.x.
Nothing published for this version
Fixed a bug in StyledTextActionTag (tag's content was not passed to the first parameter of the callback).
StyledTextActionTag (tag's content was not passed to the first parameter of the callback).Nothing published for this version
Attention! Deprecated constructs from version 2.x will be removed in the next update.
Attention! Deprecated constructs from version 2.x will be removed in the next update.
[Breaking Changes] In StyledTextWidgetBuilderTag.builder now the tag attributes are passed as the second parameter.
StyledTextWidgetBuilderTag.builder now the tag attributes are passed as the second parameter.Fixed a bug when unmounting a widget from a tree during text parsing.
* Flutter 2.2 compatibility.
Nothing published for this version
[Breaking Changes] Changed the way text tags are styled. Now, instead of TextStyle and classes that implement it, you need to use new classes that des…
TextStyle and classes that implement it, you need to use new classes that describe the styles and behavior of tags.newLineAsBreaks parameter is now true by default.Nothing published for this version
* Fixed a typo in the example.
* Migrate to null safety.
Added CustomTextStyle text style, for which you can specify handling of tag attributes.
CustomTextStyle text style, for which you can specify handling of tag attributes.Made a workaround to keep whitespace between tags: bold &space; italic .
<b>bold</b>&space;<i>italic</i>.size, color and backgroundColor parameters to IconStyle class.Fixed a bug when the space between two tags was eaten.
Improved handling of broken xml.
Nothing published for this version
The deprecated isNewLineAsBreaks parameter has been removed.
StyledText.selectable constructor to create selectable text.isNewLineAsBreaks parameter has been removed.Nothing published for this version
The parameter isNewLineAsBreaks has been renamed to newLineAsBreaks, isNewLineAsBreaks is deprecated.
Improved support for DefaultTextSyle, now style property is merging with DefaultTextSyle.
style property is merging with DefaultTextSyle.style property.Fixed flickering when changing style, styles and text.
The parameter isNewLineAsBreaks has been added, indicating not to ignore line breaks in the source text.
* Example added.
Allow XML special chars: < (<), & (&), > (>), " ("), and ' (')
* Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →