MaterialTheme
Source set: Common
@Composable
public fun MaterialTheme(
colorScheme: ColorScheme = MaterialTheme.colorScheme,
shapes: Shapes = MaterialTheme.shapes,
typography: Typography = MaterialTheme.typography,
content: @Composable () -> Unit,
): Unit
Parameters
| colorScheme | A complete definition of the Material Color theme for this hierarchy |
| shapes | A set of corner shapes to be used as this hierarchy's shape system |
| typography | A set of text styles to be used as this hierarchy's typography system |
| content | The content inheriting this theme |
MaterialTheme
Source set: Common
@Composable
public fun MaterialTheme(
colorScheme: ColorScheme = MaterialTheme.colorScheme,
motionScheme: MotionScheme = MaterialTheme.motionScheme,
shapes: Shapes = MaterialTheme.shapes,
typography: Typography = MaterialTheme.typography,
content: @Composable () -> Unit,
)
Parameters
| colorScheme | A complete definition of the Material Color theme for this hierarchy |
| motionScheme | A complete definition of the Material Motion scheme for this hierarchy |
| shapes | A set of corner shapes to be used as this hierarchy's shape system |
| typography | A set of text styles to be used as this hierarchy's typography system |