Skip to content
🤔 Documentation issue? Report or edit

Spacer

Spacer is a Composable that can be used when you want to add an additional space between Composables

Example

@Composable
fun SpacerDemo() {
    Column {
        Text("Hello")
        Spacer(modifier = Modifier.size(30.dp))
        Text("World")
    }
}

See also:


Last update: July 27, 2022