Skip to content

Instantly share code, notes, and snippets.

@AlankritaShah
Created October 27, 2022 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlankritaShah/56c0746892629bfc1550d1239945efd2 to your computer and use it in GitHub Desktop.
Save AlankritaShah/56c0746892629bfc1550d1239945efd2 to your computer and use it in GitHub Desktop.
@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