Is it just me or are components styled with material theme by default? I’m struggling with styling text fields.
z
Zach Klippenstein (he/him) [MOD]
05/18/2021, 9:52 PM
Components from the Material library are. If you’re using the
TextField
composable (instead of
BasicTextField
), that’s from the material library.
s
Skovisen
05/18/2021, 9:57 PM
Aha, okay, thanks for the heads up 🙂
Skovisen
05/18/2021, 9:57 PM
Guess it makes perfect sense when you say it like that 🤔 😅
z
Zach Klippenstein (he/him) [MOD]
05/18/2021, 9:59 PM
Compose, more so than classic android view toolkit, is designed to be used in the context of specific design systems. So most of the components that you’d find as generic components in classic android are material-specific in compose. It’s relatively easy to implement components for your own design system on top of the foundation layer if you need to.
c
Chris Sinco [G]
05/19/2021, 5:12 AM
You can use
BaseTextField
which gives you similar behaviors but is less opinionated on the styling - hence giving you more control over the presentation that is NOT Material