AppTheme

fun AppTheme(darkTheme: Boolean = false, content: () -> Unit)

Applies the application's Material theme to the provided content, switching between LightColors and DarkColors based on the darkTheme flag.

Note: To follow the system dark-mode preference, pass darkTheme = isSystemInDarkTheme().

TODO fix issue with ktfmt formatting annotated high order functions. Current workaround below: lambda in this format content: (@Composable() () -> Unit) to allow spotlessApply

Parameters

darkTheme

Whether to use the dark color palette; defaults to false.

content

The composable content to render inside the theme.