https://kotlinlang.org logo
#compose
Title
# compose
d

Dominaezzz

12/31/2020, 2:54 PM
Are there plans for more spans for
AnnotatedString
? Like
BulletSpan
,
QuoteSpan
, etc. (Unless this can be achieved already?)
h

Halil Ozercan

12/31/2020, 4:29 PM
There is https://github.com/zach-klippenstein/compose-richtext for expanded set of Rich Text features. I'm not sure whether
BulletSpan
or
QuoteSpan
will ever be supported by
annotatedString
because they are paragraph styles and require customized styling anyway. The expectation would be that developers can style around
Text
to achieve something similar, like
compose-richtext
d

Dominaezzz

12/31/2020, 4:34 PM
I would use that if I wasn't on desktop.
Is it really that unreasonable for
AnnotatedString
to handle this?
z

Zach Klippenstein (he/him) [MOD]

12/31/2020, 7:09 PM
I agree this would be nice to have built in, but I understand why it’s not a priority for v1.0. Fwiw, I am planning to make that library multiplatform as soon as desktop doesn’t require an older compose version.
39 Views