Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created June 27, 2022 00:38
Show Gist options
  • Save skydoves/30a72b713a5426607ba28c5e8505edf3 to your computer and use it in GitHub Desktop.
Save skydoves/30a72b713a5426607ba28c5e8505edf3 to your computer and use it in GitHub Desktop.
nia_dynamic_color
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment