Object

SurfaceDefaults

Contains the default values used by a non-interactive Surface

Source set: Android
object SurfaceDefaults

Contains the default values used by a non-interactive Surface

Properties

shape

Source set: Android
val shape: Shape

Represents the default shape used by a non-interactive Surface

Functions

colors

Source set: Android
@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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: