bohregard
08/02/2020, 5:03 PMSurface(
color = Color(0xFFFF0000),
modifier = Modifier.width(5.dp).fillMaxHeight()
) {
Text("")
}
I’ve got this, but if I remove the Text item the color isn’t drawn which is really all I care aboutArchie
08/02/2020, 5:07 PMBox
instead.Foso
08/02/2020, 5:07 PMbohregard
08/02/2020, 5:09 PMBox(
backgroundColor = MaterialTheme.colors.primary,
modifier = Modifier.width(5.dp).fillMaxHeight()
)
Card(modifier = Modifier.fillMaxWidth().padding(10.dp)) {
Row {
Box(
backgroundColor = MaterialTheme.colors.primary,
modifier = Modifier.width(5.dp).height(100.dp)
) {}
Column(
modifier = Modifier.padding(start = 5.dp).fillMaxWidth().fillMaxHeight()
) {
Text(
text = it.seriesName
)
Text(
text = it.title
)
Text(
text = LocalDateTime.ofInstant(it.airDateUtc, ZoneId.systemDefault())
.toString()
)
}
}
}
Archie
08/02/2020, 5:11 PMBox(
backgroundColor = MaterialTheme.colors.primary,
modifier = Modifier.width(5.dp).fillMaxHeight()
)
worked just fine..bohregard
08/02/2020, 5:12 PMArchie
08/02/2020, 5:14 PMCard
to say a fixed height or to wrap...bohregard
08/02/2020, 5:17 PMheight(100.dp)
) but wrap content size or wrap content height doesn’t work