Forgive my ignorance on this one, but in my code… ...
# compose
a
Forgive my ignorance on this one, but in my code… why does Box not fill the max size and overlay my Card content.. is there a way to do this without hard-coding an overlay size? This does display something if I set an explicit size dp value.
Copy code
@Composable
private fun GridItem() {
  Card(modifier = Modifier.padding(8.dp)) {
        Column {
            ... card content goes here
        }
        // overlay content
        Box(
            Modifier
                .fillMaxSize()
                .background(Color.Blue)
                .alpha(0.5f)
        )
    }
}