How to set the border size for outlinedtextfield? ...
# compose
r
How to set the border size for outlinedtextfield? The focused state bordersize looks like 2 dp but wants the size to be 1.dp. 🙏
d
I have the same issue, but didn't found any solution. Seems like there is no such API and default values will be applied
r
Did you end up creating a custom component... I need to build a search view like in Google maps
f
I think creating a custom component based on
BasicTextField
is the only solution. Look at the source code for
OutlinedTextField
. Basically you need to copy it with the constant
IndicatorFocusedWidth
changed to
1.dp
r
Yeah, Thanks