-
-
Save AlankritaShah/575ab9bb88590c36a05311c2e5db9a37 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 ComposeQuadrants() { | |
Column(modifier = Modifier.fillMaxSize()) { | |
Row(Modifier.weight(1F)) { | |
ComposeQuadrant( | |
color = Color.Green, | |
head = "Text composable", | |
body = "Displays text and follows Material Design guidelines.", | |
modifier = Modifier.weight(1f) | |
) | |
ComposeQuadrant( | |
color = Color.Yellow, | |
head = "Image composable", | |
body = "Creates a composable that lays out and draws a given Painter class object.", | |
modifier = Modifier.weight(1f) | |
) | |
} | |
Row(Modifier.weight(1F)) { | |
ComposeQuadrant( | |
color = Color.Cyan, | |
head = "Row composable", | |
body = "A layout composable that places its children in a horizontal sequence.", | |
modifier = Modifier.weight(1f) | |
) | |
ComposeQuadrant( | |
color = Color.LightGray, | |
head = "Column composable", | |
body = "A layout composable that places its children in a vertical sequence.", | |
modifier = Modifier.weight(1f) | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment