How to change shape for `OutlinedTextField`?
# compose
k
How to change shape for
OutlinedTextField
?
👍 1
m
Use modifier. For example:
Copy code
OutlinedTextField(value = amount.value, onValueChange = {amount.value = it}, label = {Text("Amount")}, modifier = Modifier.clip(
            CutCornerShape(16.dp)))
k
But the border will also be clipped
👍 1
I want to make a rounded TextField with rounded border.
m
Yeah. This is only an example. I don't think OutlinedTextField needs a shape because it has round corners by default.
k
I want 24 dp corner size 😣
👍 1
m
Maybe you don't need OutlinedTextField then. Try normal TextField with border() modifier.
s
You can use
BaseTextField
164 Views