Complete the code to add padding of 16.dp to the Text composable.
Text("Hello", modifier = Modifier.[1](16.dp))
The padding modifier adds space around the composable content.
Complete the code to set the size of the Button to 100.dp width and 50.dp height.
Button(onClick = {}, modifier = Modifier.[1](100.dp, 50.dp)) { Text("Click") }The size modifier sets the width and height of the composable.
Fix the error in the code to make the Text respond to clicks.
Text("Tap me", modifier = Modifier.[1] { println("Clicked") })
The clickable modifier makes the composable respond to tap events.
Fill both blanks to add padding of 8.dp and make the Box clickable.
Box(modifier = Modifier.[1](8.dp).[2] { println("Box clicked") }) { }
First add padding, then make the Box clickable with the clickable modifier.
Fill all three blanks to create a Text with 12.dp padding, size 120.dp by 40.dp, and clickable behavior.
Text("Press me", modifier = Modifier.[1](12.dp).[2](120.dp, 40.dp).[3] { println("Pressed") })
Use padding to add space, size to set dimensions, and clickable to handle taps.
