Package com.google.android.material.composethemeadapter

Types

ThemeParameters
Link copied to clipboard
data class ThemeParameters(colors: Colors?, typography: Typography?, shapes: Shapes?)
This class contains the individual components of a MaterialTheme: Colors, Typography and Shapes.

Functions

createMdcTheme
Link copied to clipboard
fun createMdcTheme(context: Context, layoutDirection: LayoutDirection, density: Density = Density(context), readColors: Boolean = true, readTypography: Boolean = true, readShapes: Boolean = true, setTextColors: Boolean = false, setDefaultFontFamily: Boolean = false): ThemeParameters
This function creates the components of a androidx.compose.material.MaterialTheme, reading the values from an Material Components for Android theme.
MdcTheme
Link copied to clipboard
@Composable()
fun MdcTheme(context: Context = LocalContext.current, readColors: Boolean = true, readTypography: Boolean = true, readShapes: Boolean = true, setTextColors: Boolean = false, setDefaultFontFamily: Boolean = false, content: @Composable() () -> Unit)
A MaterialTheme which reads the corresponding values from a Material Components for Android theme in the given context.