How to fix "Unresolved reference 'outlinedTextFieldColors'" for TextFieldDefaults?
14:22 26 Aug 2025

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
android-jetpack-compose-material3 outlined-text-fields