Archie
10/05/2020, 11:09 AMText
composable when not placed in a Surface
seem to not apply Material Theme
correctly. So when I do:
Column {
Text() // This text color is black in both light and dark theme
}
It seems that ContentAmbientColor
is not properly set for onBackgroundColor
(composables not part of a surface). Its really hard to trace what exactly is the problem though, as routing to sources in the IDE is currently broken.Louis Pullen-Freilich [G]
10/05/2020, 12:12 PMSurface
, a Scaffold
(which internally contains a Surface
), or some other component that sets content color for you. It is the responsibility of the component that provides the background to also set content color.Archie
10/05/2020, 1:01 PM