From 30f9687fc7f3188565edba74f623c2f149411330 Mon Sep 17 00:00:00 2001 From: Fries Date: Mon, 5 Aug 2024 20:43:07 -0700 Subject: [PATCH] Add 24 dp's of padding to the Greeting text. --- app/src/main/java/gay/fries/greetingcard/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/gay/fries/greetingcard/MainActivity.kt b/app/src/main/java/gay/fries/greetingcard/MainActivity.kt index dcdef15..464e722 100644 --- a/app/src/main/java/gay/fries/greetingcard/MainActivity.kt +++ b/app/src/main/java/gay/fries/greetingcard/MainActivity.kt @@ -14,6 +14,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp import gay.fries.greetingcard.ui.theme.GreetingCardTheme class MainActivity : ComponentActivity() { @@ -38,7 +39,7 @@ fun Greeting(name: String, modifier: Modifier = Modifier) { Surface(color = Color.Magenta) { Text( text = "Hello $name!", - modifier = modifier + modifier = modifier.padding(24.dp) ) } }