Allowing text input is useful for some use cases like a search box. In your case for styling purposes, I assume
AmbientTextStyle.current
didn't work for you?
v
Vsevolod Ganin
10/31/2020, 2:04 AM
What do you mean?
AmbientTextStyle.current
just contains some text parameters which were provided earlier.
TextField
has its own distinctive values for styling. Besides text parameters,
TextField
declares distinctive paddings, sizes, it positions leading/trailing icons in a way, etc. I just don’t want to implement these specs again for read-only case though it’s perfectly valid option