Computer scienceMobileJetpack ComposeComposablesFoundation

Spacer and Padding

Theory

Symmetric padding

Report a typo

Finish the SymmetricPadding composable function to accomplish this:

Preview of `SymmetricPadding` function.

Fill in the gaps with the relevant elements
@Composable
fun SymmetricPadding() {
    Column(
        modifier = Modifier
            .padding( = 32.dp)
            .size(16.dp)
            .background(Color.Yellow)
    ) { /*...*/ }

    Column(
        modifier = Modifier
            .padding( = 32.dp,  = 24.dp)
            .size(16.dp)
            .background(Color.Red)
    ) { /*...*/ }
}
verticalhorizontalhorizontalxyx
___

Create a free account to access the full topic