Is there a composition local that affects the colo...
# compose
m
Is there a composition local that affects the color of text in BasicTextField? In other words, what color is used if if my TextStyle has Color.Unspecified? And can i override that? BasicTextField is not part of material and as such, doesn't pay attention to LocalContentColor
z
Nope, BasicTextField hard codes the color that Unspecified resolves to. If you’re not using material TextField, it’s recommended to create your own TextField component that wraps BTF and then you can configure the color however you want.
m
Yeah, i just sort of figured that out by poking around the material TextField. That's when i noticed it copying the style and applying a color change using .takeOrElse to force a color if it's marked as unspecified