Drew Hamilton
12/20/2019, 4:29 PMLike Slack’s.This is what I was expecting to work:
Row {
ColoredRect(
color = (+MaterialTheme.colors()).onSurface.copy(alpha = 0.12f),
width = 4.dp
)
Space(Width(8.dp))
Text(toDo.text)
}
But what happens is that the ColoredRect expands infinitely in height, pushing any elements below the row out of sight.
I’m using it as the text element in an AlertDialog. What am I doing wrong?Adam Powell
12/20/2019, 4:32 PMDrew Hamilton
12/20/2019, 6:46 PMAlertDialog?Drew Hamilton
12/20/2019, 6:51 PM@Composable fun Popup(model: Model) {
val context = +ambient(ContextAmbient)
AlertDialog(
...
title = { Text("Title") },
text = <earlier snippet>,
buttons = ...Drew Hamilton
12/20/2019, 6:53 PM