Sign in
Log inSign up
Vincent Tsen

2 comments

Alek
Alek
Apr 19, 2023

Hay Vincent, i have problem with compose, i have small app like cart, but i need the price is editable in textfield, i try to resolve but still failed, can you give me some insight to do it thanks

1
·
·1 reply
Vincent Tsen
Vincent Tsen
Author
·Apr 20, 2023

I'm not sure if I can help, but something like this will do.

@Composable
fun SimpleFilledTextFieldSample() {
    var text by remember { mutableStateOf("Hello") }

    TextField(
        value = text,
        onValueChange = { text = it },
        label = { Text("Label") }
    )
}
·