superlistapp / super_editor

A Flutter toolkit for building document editors and readers
https://superlist.com/SuperEditor/
MIT License
1.68k stars 246 forks source link

Finalize AttributedText API #113

Open matthew-carroll opened 3 years ago

matthew-carroll commented 3 years ago

AttributedText has some mutable and some immutable behaviors. It's a conflicting API.

Either AttributedText should commit to be mutable, or immutable, or 2 classes should exist; one for each use-case.

salihgueler commented 3 years ago

Maybe related to this:

When there is an AttributedText with only bold or italic in a paragraph, a person can not make an adjustment to the text and it throws the following exception.

Exception: Another AttributedSpans can only be appended after the final marker in this AttributedSpans. Final marker: [SpanMarker] - attribution: italics, offset: 0, type: SpanMarkerType.end

STR: