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

Lucas Kivi

01/26/2023, 10:57 PM
Is it possible to change font size in a
Text
without recomposing?
a

agrosner

01/26/2023, 11:59 PM
Why avoiding recomposing?
j

james

01/27/2023, 12:34 AM
when you change an input of your composable you will trigger recomposition.. can you elaborate on what you’re trying to achieve?
c

Chris Sinco [G]

01/27/2023, 12:34 AM
If it’s for animation purposes, you can change the scale on the graphicsLayer (Modifier.graphicsLayer) which will not recompose and just redraw. You would just have to do a tiny bit of math to figure out what to scale to/from.
2 Views