SurfaceDefaults

object SurfaceDefaults


Contains the default values used by a non-interactive Surface

Summary

Public functions

SurfaceColors
@Composable
colors(containerColor: Color, contentColor: Color)

Creates a SurfaceColors that represents the default container & content colors used by a non-interactive Surface.

Public properties

Shape

Represents the default shape used by a non-interactive Surface

Public functions

colors

@Composable
fun colors(
    containerColor: Color = MaterialTheme.colorScheme.surface,
    contentColor: Color = contentColorFor(containerColor)
): SurfaceColors

Creates a SurfaceColors that represents the default container & content colors used by a non-interactive Surface.

Parameters
containerColor: Color = MaterialTheme.colorScheme.surface

the container color of this Surface

contentColor: Color = contentColorFor(containerColor)

the content color of this Surface

Public properties

shape

Added in 1.0.0
val shapeShape

Represents the default shape used by a non-interactive Surface