flutter_spanned_controller 0.4.0-0
flutter_spanned_controller: ^0.4.0-0 copied to clipboard
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 #
0.3.0-0 — 2020-12-18 #
Added #
- System to theme
TextAttributeswithAttributeTheme. - Range to avoid confusion with
TextRange.TextRangeis designed to be for indexing intoStringby UTF-16 code units.
Changed #
TextAttributenow has a resolve method that returns the actual information for applying the attribute in the form ofTextAttributeValue.- The
characterslibrary is used to index with grapheme clusters instead of UTF-16 code units. This changes mostString-based API to useCharactersinstead. - Use
RangeinAttributeSpanand related classes to avoid confusion with UTF-16 indices used byTextRange. - Renamed
SpanList.spanstoiterto prevent confusingspans.spans. SpannedTextEditingControllertakes aSpanListnow instead ofIterable<AttributeSpan>.- Renamed
InsertBehaviortoExpandRuleandFullInsertBehaviortoSpanExpandRules. Finally, I've come up with the right name for this concept :) - Rename
SpannedString()toSpannedString.chars()and let unnamed constructor takeString.
Fixed #
- Changed library name from flutter_span_controller to flutter_spanned_controller.
0.1.0-0 — 2020-12-11 #
Initial release.