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

reactormonk

09/29/2023, 12:50 PM
I'm trying to get my
FlowRow
to scroll, but no such thing is happening, what's wrong here?
Copy code
setContent {
            val state = rememberScrollState(0)

            MaterialTheme() {
                FlowRow(
                    horizontalArrangement = Arrangement.spacedBy(10.dp),
                    verticalArrangement = Arrangement.spacedBy(10.dp),
                    modifier = Modifier.scrollable(state,  Orientation.Vertical)
                ) {
Switched it to
Modifier.verticalScroll(state)
, and now it work blob thinking upside down
e

efemoney

09/29/2023, 1:16 PM
It says in the docs that
scrollable
has a contract. You will need to update the state yourself
r

reactormonk

09/29/2023, 1:26 PM
🫠
8 Views