Kyant
08/30/2022, 4:33 AMdynamicColorScheme()
, and set it to MaterialTheme
. (Don't forget to provide LocalTonalPalettes
first.)
You can also get a dynamic color by using 40.a1 withNight 80.a1
(100 means white, 0 means black), this is very brief.
There's a demo you can play with.