Skip to content

Instantly share code, notes, and snippets.

@AlankritaShah
Created October 27, 2022 21:05
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/33a64444cf8bd756b9b335e200920c53 to your computer and use it in GitHub Desktop.
Save AlankritaShah/33a64444cf8bd756b9b335e200920c53 to your computer and use it in GitHub Desktop.
@Composable
fun ComposeQuadrant(color: Color, head: String, body: String, modifier: Modifier = Modifier) {
Column(
modifier = modifier
.background(color)
.padding(16.dp)
.fillMaxHeight(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = head,
fontWeight = FontWeight.Bold,
modifier = Modifier.padding(0.dp, 0.dp, 0.dp, 16.dp)
)
Text(
text = body,
textAlign = TextAlign.Justify,
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment