I have a problem, where I need a BasicTextField to customize the TextField as I want.
Here I have tried to do a custom, but there is a problem with the cursor in the BasicTextField, it doesn't center align, what I need is center alignment
Screen Created.
Expectation:
i code like this
BasicTextField(
value = value,
onValueChange = onValueChange,
decorationBox = { innerTextField ->
Column(
modifier = Modifier
.fillMaxWidth(),
horizontalAlignment = Alignment.CenterHorizontally
) {
innerTextField()
Space(height = 8.dp)
Divider()
}
}
)