How do I create a Jetpack Compose Column where a middle child is scrollable but all of the other children are always visible?

Use this for your middle (scrollable) composable

    Column(
        modifier = Modifier
            .verticalScroll(rememberScrollState())
            .weight(weight =1f, fill = false)

    ) {
        Text("Your text here")
    }

The key is to use fill = false.

Leave a Comment