In which task and step of the codelab can this issue be found?
3 Get Starter Code. Step 4 Import this function: import androidx.compose.material.TextField
Describe the problem
When I add code:
fun EditNumberField(modifier: Modifier = Modifier) {TextField(value = "",onValueChange = {},modifier = modifier)}
it automatically add
import androidx.compose.material3.TextField
I must use material3 not just material. That's right?
Steps to reproduce?
Go to...
Click on...
See error...
VersionsAndroid Studio version:API version of the emulator:
Additional informationInclude screenshots if they would be useful in clarifying the problem.
URL of codelab https://developer.android.com/codelabs/basic-android-kotlin-compose-using-state?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-using-state#2
In which task and step of the codelab can this issue be found? 3 Get Starter Code. Step 4 Import this function: import androidx.compose.material.TextField
Describe the problem When I add code:
fun EditNumberField(modifier: Modifier = Modifier) {
TextField(value = "",
onValueChange = {},
modifier = modifier
)
}
it automatically add import androidx.compose.material3.TextField I must use material3 not just material. That's right?Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.