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

Rodri Represa

10/14/2020, 1:46 PM
Can I change the constrains of a component inside a
ConstraintLayout
in base of a
mutableStateOf<Boolean>
? If the mutable value change, my component will have others constrains..
z

Zach Klippenstein (he/him) [MOD]

10/14/2020, 1:47 PM
I haven't actually tried, but I don't know why this wouldn't work. Is it not working for you?
r

Rodri Represa

10/14/2020, 1:48 PM
Nope 🙃. I can change the background color for example and see that is working, but not the constrains
z

Zach Klippenstein (he/him) [MOD]

10/14/2020, 1:50 PM
I'd file a bug, sounds like maybe the constraints block is not recording snapshot reads.
r

Rodri Represa

10/14/2020, 1:59 PM
Will do, thanks! ❤️