How can I hide or disable hint label after text input?
OutlinedTextField(
value = value,
modifier = Modifier.fillMaxSize(),
shape = RoundedCornerShape(8.dp),
textStyle = TextStyle(fontSize = nFontSize),
colors = TextFieldDefaults.outlinedTextFieldColors(
textColor = Color.Black,
focusedBorderColor = colorResource(id = R.color.inbox_company_red),
cursorColor = Color.Black),
//visualTransformation = VisualTransformation.None,
label = {Text(text = if (value.isEmpty()) stringResource(id = R.string.name" else "")}

You can hide using
rememberfunction as this :Then update your
@Composableas this :Result is
Edit
If you want to hide the
labelwhen gaining focus your@Composableyou can use theModifier.onFocusChangesee the edited code