-
-
Save AlankritaShah/3329ee1f5023f96f4a8370a75d131233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun BirthdayGreetingWithText(message: String, from: String) { | |
Surface(color = Color.Magenta) { | |
Column { | |
Text( | |
text = message, | |
fontSize = 24.sp, | |
color = Color.White, | |
modifier = Modifier | |
.fillMaxWidth() | |
.wrapContentWidth(Alignment.CenterHorizontally) | |
.padding(10.dp) | |
) | |
Text( | |
text = from, | |
fontSize = 20.sp, | |
color = Color.White, | |
modifier = Modifier | |
.fillMaxWidth() | |
.wrapContentWidth(Alignment.CenterHorizontally) | |
.padding(10.dp) | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment