How to trigger visual transformation upon focus prior to typing

113 Views Asked by At

Is there a way to trigger the VisualTransformation upon focus just prior to user typing?

var text by remember { mutableStateOf("") }

OutlinedTextField(
    modifier = modifier,
    value = text,
    onValueChange = { input ->
        text = input
    },
    label = {
        Text("Input Here")
    },
    placeholder = {
        Text("$")
    }
)

In this case, I'm looking for a way to put the cursor in front or after the $ dollar sign upon focus


Something like this

enter image description here

0

There are 0 best solutions below