https://kotlinlang.org logo
#glance
Title
# glance
k

Kimon

08/15/2022, 9:38 AM
java.lang.IllegalStateException: No child for position 5 and size Wrap x Expand
Is there an easy way to figure out what is wrong with my composables when I get this error? What does the position stand for? It happens when I use
defaultWeight
GlanceModifier.
@Marcel Pinto It was happening because I was wrapping some Composables that had
defaultWeight
(ColumnScope) GlanceModifier, with a Box. I guess Android Studio should show a warning in these cases.
31 Views