Skip to content

Instantly share code, notes, and snippets.

@cp-radhika-s
Created September 8, 2022 17:29
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 cp-radhika-s/685a8fa7726b59573233f40364c11ab1 to your computer and use it in GitHub Desktop.
Save cp-radhika-s/685a8fa7726b59573233f40364c11ab1 to your computer and use it in GitHub Desktop.
Text(
text = "Fresh Strawberry Cake", fontSize = 22.sp,
textAlign = TextAlign.Center,
fontWeight = FontWeight.SemiBold, modifier = Modifier
.layoutId("title")
.fillMaxWidth()
.padding(10.dp)
)
Divider(
Modifier
.layoutId("titleDivider")
.fillMaxWidth()
.padding(horizontal = 34.dp)
)
Text(
text = "by John Kanell", fontSize = 16.sp,
textAlign = TextAlign.Center,
color = Gray, fontStyle = FontStyle.Italic,
modifier = Modifier
.layoutId("subTitle")
.fillMaxWidth()
.padding(6.dp)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment