How to fix "Unresolved reference 'outlinedTextFieldColors'" for TextFieldDefaults?
Can anyone tell me where the error is:
OutlinedTextField(
value = task,
onValueChange = { task = it },
label = { Text("Anexe uma tarefa") },
colors = TextFieldDefaults.outlinedTextFieldColors(
textColor = Color.Black
)
)
How do you change the color of the text?
This message appears:
Unresolved reference 'outlinedTextFieldColors'.
these are the parts of the imports related:
import androidx.compose.material3.TextFieldDefaults