Mehdi Haghgoo
08/06/2020, 5:05 AM@Composable
fun Surface(
modifier: Modifier = Modifier,
shape: Shape = RectangleShape,
color: Color = MaterialTheme.colors.surface,
contentColor: Color = contentColorFor(color),
border: Border? = null,
elevation: Dp = 0.dp,
content: @Composable () -> Unit
)
allan.conda
08/06/2020, 5:24 AMand they also have a body for contentWhat do you mean?
romainguy
08/06/2020, 6:03 AMSurface { content() }
insteadallan.conda
08/06/2020, 6:10 AMMehdi Haghgoo
08/06/2020, 8:20 AMmatvei
08/06/2020, 9:13 AMcaelum19
08/08/2020, 2:31 PM