-
-
Save AlankritaShah/33a64444cf8bd756b9b335e200920c53 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 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