ListItemDefaults


Contains the default values used by list items.

Summary

Public functions

ListItemColors

Creates a ListItemColors that represents the default container and content colors used in a ListItem.

Cmn
ListItemColors
@Composable
colors(
    containerColor: Color,
    headlineColor: Color,
    leadingIconColor: Color,
    overlineColor: Color,
    supportingColor: Color,
    trailingIconColor: Color,
    disabledHeadlineColor: Color,
    disabledLeadingIconColor: Color,
    disabledTrailingIconColor: Color
)

Creates a ListItemColors that represents the default container and content colors used in a ListItem.

Cmn

Public properties

Dp

The default elevation of a list item

Cmn
Color

The container color of a list item

Cmn
Color

The content color of a list item

Cmn
Shape

The default shape of a list item

Cmn

Public functions

colors

@Composable
fun colors(): ListItemColors

Creates a ListItemColors that represents the default container and content colors used in a ListItem.

colors

@Composable
fun colors(
    containerColor: Color = Color.Unspecified,
    headlineColor: Color = Color.Unspecified,
    leadingIconColor: Color = Color.Unspecified,
    overlineColor: Color = Color.Unspecified,
    supportingColor: Color = Color.Unspecified,
    trailingIconColor: Color = Color.Unspecified,
    disabledHeadlineColor: Color = Color.Unspecified,
    disabledLeadingIconColor: Color = Color.Unspecified,
    disabledTrailingIconColor: Color = Color.Unspecified
): ListItemColors

Creates a ListItemColors that represents the default container and content colors used in a ListItem.

Parameters
containerColor: Color = Color.Unspecified

the container color of this list item when enabled.

headlineColor: Color = Color.Unspecified

the headline text content color of this list item when enabled.

leadingIconColor: Color = Color.Unspecified

the color of this list item's leading content when enabled.

overlineColor: Color = Color.Unspecified

the overline text color of this list item

supportingColor: Color = Color.Unspecified

the supporting text color of this list item

trailingIconColor: Color = Color.Unspecified

the color of this list item's trailing content when enabled.

disabledHeadlineColor: Color = Color.Unspecified

the content color of this list item when not enabled.

disabledLeadingIconColor: Color = Color.Unspecified

the color of this list item's leading content when not enabled.

disabledTrailingIconColor: Color = Color.Unspecified

the color of this list item's trailing content when not enabled.

Public properties

Elevation

val ElevationDp

The default elevation of a list item

containerColor

val containerColorColor

The container color of a list item

contentColor

val contentColorColor

The content color of a list item

shape

val shapeShape

The default shape of a list item