-
-
Save AlankritaShah/56c0746892629bfc1550d1239945efd2 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) { | |
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