HighlightFlat

fun HighlightFlat(modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: Color = SparkTheme.colors.main, contentPadding: PaddingValues = CardDefaults.paddingValues(true), heading: @Composable () -> Unit = { }, content: @Composable ColumnScope.() -> Unit)(source)

Highlight flat card with a colored banner at the top for additional emphasis.

Highlight flat card

Parameters

modifier

the Modifier to be applied to this card

shape

the shape of this card

colors

color used for the heading banner

contentPadding

padding around the content

heading

optional composable drawn in the top banner area

content

content of the card


fun HighlightFlat(onClick: () -> Unit, modifier: Modifier = Modifier, shape: Shape = SparkTheme.shapes.medium, colors: Color = SparkTheme.colors.main, contentPadding: PaddingValues = CardDefaults.paddingValues(true), heading: @Composable () -> Unit = { }, content: @Composable ColumnScope.() -> Unit)(source)

Clickable highlight flat card with a colored banner at the top for additional emphasis.

Highlight 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

color used for the heading banner

contentPadding

padding around the content

heading

optional composable drawn in the top banner area

content

content of the card