Android
object SurfaceDefaults
Contains the default values used by a non-interactive Surface
Properties
Android
val shape: Shape
Represents the default shape used by a non-interactive Surface
Functions
colors
@ReadOnlyComposable
@Composable
fun colors(
containerColor: Color = MaterialTheme.colorScheme.surface,
contentColor: Color = contentColorFor(containerColor),
) = SurfaceColors(containerColor = containerColor, contentColor = contentColor)
Creates a SurfaceColors that represents the default container & content colors used by a non-interactive Surface.
Parameters
| containerColor | the container color of this Surface |
| contentColor | the content color of this Surface |