Finish the DifferentPaddings composable function by adding the right modifiers and parameters to get the result shown below:
Spacer and Padding
Different paddings
Report a typo
Fill in the gaps with the relevant elements
@Composable
fun DifferentPaddings() {
Column {
Text("Hello",
Modifier.( = 8.dp)
)
Box(
Modifier
.( = 8.dp)
.size(64.dp)
.background(Color.Yellow)
) { /*...*/ }
Text("padding",
Modifier.( = (-32).dp)
)
}
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.