https://kotlinlang.org logo
a

Abhishek Dewan

12/28/2021, 6:24 PM
Does anyone know of a good way of providing different styles for different lines of text in an
TextField
. I have a sort of working solution using a custom
VisualTransformation
however trying to see if there is a different way of achieving this.
I've tried to replace the textStyle param in the TextField but that changes the fontWeight and color for all of the text (the minute the switch happens)
Found a solution using annotated strings and span styles
👍 1