alorma
Javier
https://youtu.be/exjL2kGPngI▾
data class MaterialThemeHolder( val name: String, val lightColors: Colors, val darkColors: Colors, val shapes: Shapes, val typography: Typography ) { @Composable fun compile( isDark: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit, ) { MaterialTheme( colors = if (isDark) darkColors else lightColors, shapes = shapes, typography = typography, content = content, ) } }
Afzal Najam
A modern programming language that makes developers happier.