@Halil Ozercan I've been going through the BTF2 docs, and one thing I haven't seen a way to do yet, is handle rendering custom spans. For instance, a use case I'm very interested in is providing a spell check span. So I want to be able to render some custom underline, the standard red squiggle. Then I want to be able to treat it like a link, in that I want click callbacks for it. I haven't seen a good way to provide custom rendering for spans, unless I'm missing something?
h
Halil Ozercan
11/26/2023, 1:23 PM
BTF2 doesn't support spans right now. TextFieldState holds an internal buffer that only consists of characters, no additional annotations or metadata. It's certainly in our plans to support full AnnotatedString rendering and editing.