https://kotlinlang.org logo
#compose
Title
# compose
r

Rekha

08/24/2021, 3:04 AM
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

Dmitry Strekha

08/24/2021, 7:22 AM
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

Rekha

08/26/2021, 8:48 AM
Did you end up creating a custom component... I need to build a search view like in Google maps
f

Felix Schütz

08/30/2021, 8:21 AM
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

Rekha

09/01/2021, 6:51 AM
Yeah, Thanks