flutter_spanned_controller 0.4.0-0 copy "flutter_spanned_controller: ^0.4.0-0" to clipboard
flutter_spanned_controller: ^0.4.0-0 copied to clipboard

discontinuedreplaced by: boustro
outdated

TextEditingController implementation that allows for rich text styling in Flutter.

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.4.0-0 — 2020-12-22 #

Removed #

  • TextAttribute.simple. In favor of custom classes, so each attribute has its own type and serialization can use the type to determine which encoder to use.

Changed #

  • Moved ExpandRules to be a part of attributes themselves.

0.3.0-0 — 2020-12-18 #

Added #

  • System to theme TextAttributes with AttributeTheme.
  • Range to avoid confusion with TextRange. TextRange is designed to be for indexing into String by UTF-16 code units.

Changed #

  • TextAttribute now has a resolve method that returns the actual information for applying the attribute in the form of TextAttributeValue.
  • The characters library is used to index with grapheme clusters instead of UTF-16 code units. This changes most String-based API to use Characters instead.
  • Use Range in AttributeSpan and related classes to avoid confusion with UTF-16 indices used by TextRange.
  • Renamed SpanList.spans to iter to prevent confusing spans.spans.
  • SpannedTextEditingController takes a SpanList now instead of Iterable<AttributeSpan>.
  • Renamed InsertBehavior to ExpandRule and FullInsertBehavior to SpanExpandRules. Finally, I've come up with the right name for this concept :)
  • Rename SpannedString() to SpannedString.chars() and let unnamed constructor take String.

Fixed #

  • Changed library name from flutter_span_controller to flutter_spanned_controller.

0.2.0-0 — 2020-12-14 #

Added #

  • SpannedStringBuilder to fluently build SpannedString.

0.1.1-0 — 2020-12-14 #

Changed #

  • Replaced template README with short explanation.

0.1.0-0 — 2020-12-11 #

Initial release.

1
likes
0
points
20
downloads

Publisher

verified publisherjjagg.dev

Weekly Downloads

TextEditingController implementation that allows for rich text styling in Flutter.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_collection, characters, collection, equatable, flutter, meta

More

Packages that depend on flutter_spanned_controller