Flat

fun Flat(modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: Color = SparkTheme.colors.surface, contentPadding: PaddingValues = PaddingValues(16.dp), content: @Composable ColumnScope.() -> Unit)(source)

Flat card with subtle separation from the background. Less emphasis than Elevated or Outlined.

Flat card

Parameters

modifier

the Modifier to be applied to this card

shape

the shape of this card

colors

background color of the card

contentPadding

padding around the content

content

content of the card


fun Flat(onClick: () -> Unit, modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: Color = SparkTheme.colors.surface, contentPadding: PaddingValues = PaddingValues(16.dp), content: @Composable ColumnScope.() -> Unit)(source)

Clickable flat card with subtle separation from the background. Less emphasis than Elevated or Outlined.

Flat card

Parameters

onClick

called when this card is clicked

modifier

the Modifier to be applied to this card

shape

the shape of this card

colors

background color of the card

contentPadding

padding around the content

content

content of the card