PackageTrack
Sign in Get early access

styled_text

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

10.0.0 105K downloads/mo #1105 most downloaded on pub.dev andyduke/styled_text_package

What this package is like to depend on

Last release 28 days 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

2 releases in the last 12 months

see the full history below

Release timeline

39 releases · May 2019 to Jul 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 39
  1. 10.0.0 27 Jul 2026
    Release notes
    • Bump xml dependency to ^7.0.0 for compatibility with packages that require xml 7 (e.g. pdf / printing). Thanks to @mohanedy.
    Open source →
  2. 9.0.0 14 Jan 2026
    Release notes
    • Flutter 3.38 compatibility.
    Open source →
  3. 9.0.0-beta-4 25 Jun 2024 pre-release
    Release notes
    • Fixed a bug in asynchronous parsing of tag attributes - the last set of attributes "stuck" in nested tags. Thanks to @Mithos5r, @rambah and @Merlin1stHere.
    Open source →
  4. 9.0.0-beta-2 28 May 2024 pre-release
    Release notes
    • The constructors of some widgets and classes are now constant:
      • StyledText
      • CustomStyledText
      • StyledTextTagBase
      • StyledTextTag
      • StyledTextWidgetBuilderTag
      • StyledTextIconTag
      • StyledTextActionTag
      • StyledTextCustomTag
    Open source →
  5. 9.0.0-beta-1 28 May 2024 pre-release
    Release notes
    • Text parsing has been changed from asynchronous to synchronous. This fixes an issue with the 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.
    • Require Flutter 3.16 and Dart 3.2.
    Open source →
  6. 8.1.0 25 Jul 2023
    Release notes
    • A new base widget, 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).
    Open source →
  7. 8.0.0 25 Jul 2023
    Release notes
    • 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,
                ),
              );
            },
          ),
        },
      ),
      
    Open source →
  8. 7.0.0 26 Jan 2023
    Release notes
    • Compatibility with Flutter 3.7.0.
    • New parameters contextMenuBuilder, selectionControls, selectionHeightStyle, selectionWidthStyle, onSelectionChanged, magnifierConfiguration, semanticsLabel have been added to StyledText.selectable.
    • In StyledText.selectable, the toolbarOptions parameter has been deprecated.
    Open source →
  9. 6.0.0 11 Oct 2022
    Release notes
    • Added support for SelectionArea.
    Open source →
  10. 5.1.0 11 Apr 2022
    Release notes
    • Fixed a bug that caused building after dispose.
    Open source →
  11. 5.0.0 27 Feb 2022

    Nothing published for this version

  12. 5.0.0+1 27 Feb 2022
    Release notes
    • StyledText now reacts to theme and default text style changes.
    • Fixed flickering when rebuilding without changing text and styles.
    • Removed deprecated stuff.
    Open source →
  13. 4.0.0 13 Dec 2021

    Nothing published for this version

  14. 4.0.0+1 13 Dec 2021
    Release notes
    • [Breaking Changes] Removed deprecated widgets and classes from version 2.x.
    Open source →
  15. 3.0.4 09 Oct 2021

    Nothing published for this version

  16. 3.0.4+1 31 Oct 2021
    Release notes
    • Fixed a bug in StyledTextActionTag (tag's content was not passed to the first parameter of the callback).
    Open source →
  17. 3.0.3 13 Sep 2021
    Release notes

    Attention! Deprecated constructs from version 2.x will be removed in the next update.

    • Flutter 2.5 compatibility.
    Open source →
  18. 3.0.2 29 Jul 2021
    Release notes
    • [Breaking Changes] In StyledTextWidgetBuilderTag.builder now the tag attributes are passed as the second parameter.
    Open source →
  19. 3.0.1 28 May 2021
    Release notes
    • Fixed a bug when unmounting a widget from a tree during text parsing.
    Open source →
  20. 3.0.0 19 May 2021
    Release notes
    • Flutter 2.2 compatibility.
    Open source →
  21. 3.0.0-beta 04 May 2021 pre-release

    Nothing published for this version

  22. 3.0.0-beta+1 04 May 2021 pre-release

    Nothing published for this version

  23. 3.0.0-beta+2 04 May 2021 pre-release
    Release notes
    • [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 describe the styles and behavior of tags.
    • [Breaking changes] The newLineAsBreaks parameter is now true by default.
    • Added the ability to insert any widgets into the text.
    Open source →
  24. 2.0.0 17 Apr 2021
    Release notes
    • Fixed a typo in the example.
    Open source →
  25. 2.0.0-nullsafety.0 11 Mar 2021 pre-release
    Release notes
    • Migrate to null safety.
    Open source →
  26. 1.0.3 14 Dec 2020

    Nothing published for this version

  27. 1.0.3+1 14 Dec 2020
    Release notes
    • Added CustomTextStyle text style, for which you can specify handling of tag attributes.
    Open source →
  28. 1.0.3+2 22 Jan 2021
    Release notes
    • Made a workaround to keep whitespace between tags: <b>bold</b>&space;<i>italic</i>.
    • Added size, color and backgroundColor parameters to IconStyle class.
    Open source →
  29. 1.0.3+3 24 Jan 2021
    Release notes
    • Fixed a bug when the space between two tags was eaten.
    Open source →
  30. 1.0.3+4 09 Feb 2021
    Release notes
    • Improved handling of broken xml.
    Open source →
  31. 1.0.2 12 Nov 2020

    Nothing published for this version

  32. 1.0.2+1 12 Nov 2020
    Release notes
    • Added the StyledText.selectable constructor to create selectable text.
    • Added guidance on escaping XML special characters in text.
    • The deprecated isNewLineAsBreaks parameter has been removed.
    Open source →
  33. 1.0.1 29 Apr 2020
    Release notes
    • The parameter isNewLineAsBreaks has been added, indicating not to ignore line breaks in the source text.
    • Added description of parameters via doc comments.
    Open source →
  34. 1.0.1+1 29 Apr 2020
    Release notes
    • The parameter isNewLineAsBreaks has been renamed to newLineAsBreaks, isNewLineAsBreaks is deprecated.
    Open source →
  35. 1.0.1+2 15 Sep 2020
    Release notes
    • Improved support for DefaultTextSyle, now style property is merging with DefaultTextSyle.
    • Fixed a bug where no redrawing occurred when changing style property.
    Open source →
  36. 1.0.1+3 17 Sep 2020
    Release notes
    • Fixed flickering when changing style, styles and text.
    Open source →
  37. 1.0.0 17 May 2019
    Release notes
    • Initial release.
    Open source →
  38. 1.0.0+1 17 May 2019
    Release notes
    • Example added.
    Open source →
  39. 1.0.0+2 27 Apr 2020
    Release notes
    • Allow XML special chars: < (<), & (&), > (>), " ("), and ' (')
    • Avoid memory leak log message
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive