TrailingImageCardDefaults

object TrailingImageCardDefaults


Default values used for TrailingImageCard

Summary

Public functions

Color

Calculates the default content color for a TrailingImageCard based on the provided color.

Public properties

Color

The default background color of TrailingImageCard.

PaddingValues

Default content padding used for a TrailingImageCard

Shape

The default shape of TrailingImageCard, which determines its corner radius.

Public functions

contentColor

Added in 1.0.0-alpha20
@Composable
fun contentColor(color: Color = TrailingImageCardDefaults.color): Color

Calculates the default content color for a TrailingImageCard based on the provided color.

Parameters
color: Color = TrailingImageCardDefaults.color

the background color of the trailing image card

Returns
Color

the calculated content color

Public properties

color

val color: Color

The default background color of TrailingImageCard.

contentPadding

val contentPadding: PaddingValues

Default content padding used for a TrailingImageCard

This affects the outermost content padding applied around the image and the content container. Note that there is additional padding applied around the content / text / image inside a trailing image card, this only represents the outer padding for the entire content.

shape

val shape: Shape

The default shape of TrailingImageCard, which determines its corner radius.