Bojie Jiang
01/12/2022, 8:01 PMColton Idle
01/12/2022, 8:04 PMBojie Jiang
01/12/2022, 8:05 PM@Composable
fun RowFlowerCard(rowFlower: RowFlower) {
Card(
Modifier
.height(136.dp)
.width(130.dp)
.background(MaterialTheme.colors.surface),
shape = MaterialTheme.shapes.small,
elevation = 4.dp
) {
Column(
Modifier
.fillMaxSize()
.background(MaterialTheme.colors.surface)
) {
Image(
painter = painterResource(id = rowFlower.image),
contentDescription = rowFlower.title,
Modifier
.height(100.dp),
contentScale = ContentScale.Crop
)
Spacer(modifier = Modifier.height(8.dp))
Row(
Modifier
.fillMaxWidth()
.background(MaterialTheme.colors.surface)) {
Spacer(modifier = Modifier.width(16.dp))
Text(
text = rowFlower.title,
style = MaterialTheme.typography.h2,
color = MaterialTheme.colors.onPrimary,
modifier = Modifier.height(36.dp)
)
}
}
}
}
Kirill Grouchnikov
01/12/2022, 8:23 PMbackground(MaterialTheme.colors.surface)
by background
with a different translucent primary color (like 50% red, 50% blue etc) and see if the boundaries of those elements are what you intend them to be.Chris Sinco [G]
01/12/2022, 8:43 PM