Compose Component

MaterialTheme

MaterialTheme defines the styling principles from the WearOS Material design specification which extends the Material design specification.

MaterialTheme

Source set: Android

Added in 1.7.0-alpha01

@Composable
public fun MaterialTheme(
    colors: Colors = MaterialTheme.colors,
    typography: Typography = MaterialTheme.typography,
    shapes: Shapes = MaterialTheme.shapes,
    content: @Composable () -> Unit,
)

Parameters

colors A complete definition of the Wear Material Color theme for this hierarchy
typography A set of text styles to be used as this hierarchy's typography system
shapes A set of shapes to be used by the components in this hierarchy
content Slot for composable content displayed with this theme

Last updated: