bodo
10/11/2021, 1:59 PMSurface(
modifier = Modifier.padding(10.dp)
shape = AppTheme.shapes.medium,
color = AppTheme.colors.surface
) {
content()
}
It is only working when i add a box around the content(). is this the correct way to do it???
Surface(
shape = AppTheme.shapes.medium,
color = AppTheme.colors.surface
) {
Box(modifier = Modifier.padding(10.dp)) {
content()
}
}
divid3d
10/11/2021, 3:25 PMcontent: @Composable (PaddingValues) → Unit