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

Guy Bieber

10/01/2020, 4:56 PM
Weird problem. When I do this everything renders correctly (white text on background).
Copy code
Row (Modifier.weight(.5f)) {
   vehicleView()
}
However, when I do this the text disappears (though I see the main image):
Copy code
ScrollableRow(
   modifier = Modifier.weight(.5f),
   scrollState = scrollState
) {
   vehicleView()
}
Any thoughts?
a

allan.conda

10/01/2020, 5:07 PM
how’s
= scrollState
defined?
z

Zach Klippenstein (he/him) [MOD]

10/01/2020, 5:08 PM
also what’s the parent composable?
g

Guy Bieber

10/01/2020, 6:00 PM
Parent is a Column.
Copy code
val scrollState = rememberScrollState()
It scrolls fine. It just messes up the rendering of vehicleView.
3 Views