Created
October 24, 2022 11:08
-
-
Save tfaki/53f73ef3fbef8c50057e7f89d367da13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 CardItem() { | |
Card( | |
modifier = Modifier | |
.fillMaxWidth() | |
.height(100.dp) | |
.padding(horizontal = 16.dp, vertical = 8.dp), | |
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primary) | |
) { | |
Row( | |
modifier = Modifier | |
.fillMaxSize() | |
.padding(horizontal = 16.dp), | |
verticalAlignment = Alignment.CenterVertically, | |
horizontalArrangement = Arrangement.spacedBy(16.dp) | |
) { | |
Icon( | |
Icons.Filled.Face, | |
contentDescription = "face" | |
) | |
Column { | |
Text( | |
text = "Title", | |
style = TextStyle(color = MaterialTheme.colorScheme.onPrimary) | |
) | |
Text( | |
text = "Description", | |
style = TextStyle(color = MaterialTheme.colorScheme.onPrimary) | |
) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment